Fix sensors

Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
Vasiliy Doylov 2025-03-02 15:29:04 +03:00
parent 04ce8f0b61
commit 3567d8fb4d
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ class TheCatTools.GUI.BoubleBar : Adw.Bin, Gtk.Orientable {
overlay.add_overlay (clamps_ok);
set_child (overlay);
bind_property ("orientation", clamps_ok, "orientation", GLib.BindingFlags.SYNC_CREATE);
bind_property ("orientation", bubble, "orientation", GLib.BindingFlags.SYNC_CREATE);
clamps_ok.bind_state_to_bubble_pos (bubble);
}

View file

@ -41,7 +41,7 @@ public class TheCatTools.Window : Adw.ApplicationWindow {
message("%f\t%f\t%f", x, y, z);
message("%f\t%f", x_angle, y_angle);
hbar.bubble.value_y = (float) x_angle;
hbar.bubble.value_x = (float) x_angle;
vbar.bubble.value_x = (float) y_angle;
});
} catch (Error err) {