Skip to content

Commit c5e89d8

Browse files
authored
WifiMenuItem: button_release_event → notify active (#334)
1 parent 0b493a9 commit c5e89d8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Widgets/WifiMenuItem.vala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ public class Network.WifiMenuItem : Gtk.ListBoxRow {
7575
notify["state"].connect (update);
7676

7777
// We can't use clicked because we get in a weird loop state
78-
radio_button.button_release_event.connect ((b, ev) => {
79-
activate ();
80-
return Gdk.EVENT_STOP;
78+
radio_button.notify["active"].connect (() => {
79+
if (radio_button.active) {
80+
activate ();
81+
}
8182
});
8283
}
8384

0 commit comments

Comments
 (0)