Fix sensors
Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
parent
05f751a02d
commit
df7883006f
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
if (bubble.value_x >= clamps.upper || bubble.value_y >= clamps.upper) {
|
||||
set_state_flags (Gtk.StateFlags.CHECKED, false);
|
||||
inb = false;
|
||||
} else if (bubble.value_x <= clamps.lower) {
|
||||
} else if (bubble.value_x <= clamps.lower || bubble.value_y <= clamps.lower) {
|
||||
set_state_flags (Gtk.StateFlags.CHECKED, false);
|
||||
inb = false;
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue