Skip to content

Commit

Permalink
ui,prefs: fixed changing qspinbox values
Browse files Browse the repository at this point in the history
When changing qspinbox values (density scale, refresh interval, etc),
we were unintentionally changing [x] Disable popups option.
  • Loading branch information
gustavo-iniguez-goya committed Jun 19, 2024
1 parent 552aed5 commit acdd2b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/opensnitch/dialogs/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,10 +1097,11 @@ def _cb_cmd_spin_clicked(self, spinWidget, operation):
else:
spinWidget.setValue(spinWidget.value() - 1)

enablePopups = spinWidget.value() > 0
self.popupsCheck.setChecked(not enablePopups)
self.spinUITimeout.setEnabled(enablePopups)
self._node_needs_update = True
if spinWidget == self.popupsCheck:
enablePopups = spinWidget.value() > 0
self.popupsCheck.setChecked(not enablePopups)
self.spinUITimeout.setEnabled(enablePopups)
self._node_needs_update = True

def _cb_radio_system_notifications(self):
if self._desktop_notifications.is_available() == False:
Expand Down

0 comments on commit acdd2b3

Please # to comment.