Revert "Fix sensors"

This reverts commit df7883006f.
This commit is contained in:
Vasiliy Doylov 2025-03-02 16:06:39 +03:00
parent e269404075
commit 8ac41dc582
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582

View file

@ -38,10 +38,10 @@ class TheCatTools.GUI.BoubleBar : Adw.Bin, Gtk.Orientable {
public void bind_state_to_bubble_pos (Bubble bubble) {
bubble.notify["value-x"].connect (() => {
bool inb = true;
if (bubble.value_x >= clamps.upper || bubble.value_y >= clamps.upper) {
if (bubble.value_x >= clamps.upper) {
set_state_flags (Gtk.StateFlags.CHECKED, false);
inb = false;
} else if (bubble.value_x <= clamps.lower || bubble.value_y <= clamps.lower) {
} else if (bubble.value_x <= clamps.lower) {
set_state_flags (Gtk.StateFlags.CHECKED, false);
inb = false;
} else