Skip to content

Commit ee089af

Browse files
ui,fw: fixed enable/disable global button
When there were no nodes connected, we disabled the global fw button that enables/disables the fw. Unfortunately when a node connected to the GUI, this button was not clickable anymore. (cherry picked from commit aa0d5f1)
1 parent 12baf1a commit ee089af

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ui/opensnitch/dialogs/firewall.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ def _check_fw_status(self):
210210

211211
try:
212212
enableFw = False
213-
if self._nodes.count() == 0:
213+
enableFwBtn = (self._nodes.count() > 0)
214+
self.sliderFwEnable.blockSignals(True)
215+
self.sliderFwEnable.setEnabled(enableFwBtn)
216+
self.sliderFwEnable.blockSignals(False)
217+
if not enableFwBtn:
214218
return
215219

216220
# TODO: handle nodes' firewall properly

0 commit comments

Comments
 (0)