MainWindow: Default to closing to tray to respect the default setting
This commit is contained in:
parent
c2676eaa90
commit
509d33e1b7
|
@ -215,7 +215,7 @@ class MainWindow(QMainWindow):
|
|||
# lk: `accept_close` is set to `True` by the `close()` method, overrides exiting to tray in `closeEvent()`
|
||||
# lk: ensures exiting instead of hiding when `close()` is called programmatically
|
||||
if not self.__accept_close:
|
||||
if self.settings.value("sys_tray", False, bool):
|
||||
if self.settings.value("sys_tray", True, bool):
|
||||
self.hide()
|
||||
e.ignore()
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue