mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
ui,prefs: fixed changing qspinbox values
When changing qspinbox values (density scale, refresh interval, etc), we were unintentionally changing [x] Disable popups option.
This commit is contained in:
parent
552aed5bc5
commit
acdd2b34ec
1 changed files with 5 additions and 4 deletions
|
@ -1097,10 +1097,11 @@ class PreferencesDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
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:
|
||||
|
|
Loading…
Add table
Reference in a new issue