1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

MainWindow: Default to closing to tray to respect the default setting

This commit is contained in:
loathingKernel 2023-12-06 00:08:42 +02:00
parent c2676eaa90
commit 509d33e1b7
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -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