We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a24d2 commit ac33cf9Copy full SHA for ac33cf9
src/Menu Button/main.ts
@@ -1,5 +1,12 @@
1
-const circular_switch = workbench.builder.get_object("circular_switch");
2
-const secondary_button = workbench.builder.get_object("secondary");
+import Adw from "gi://Adw";
+import Gtk from "gi://Gtk?version=4.0";
3
+
4
+const circular_switch = workbench.builder.get_object<Adw.SwitchRow>(
5
+ "circular_switch",
6
+);
7
+const secondary_button = workbench.builder.get_object<Gtk.MenuButton>(
8
+ "secondary",
9
10
11
circular_switch.connect("notify::active", () => {
12
if (circular_switch.active) {
0 commit comments