hplip/hplip-3.20.11-ui5-systray-hide-when-inactive.patch

21 lines
894 B
Diff

--- hplip-3.20.11/ui5/ui_utils.py.orig 2020-12-13 11:57:56.371789774 +0100
+++ hplip-3.20.11/ui5/ui_utils.py 2020-12-13 11:58:44.127640113 +0100
@@ -173,7 +173,7 @@
else:
QSettings.__init__(self, os.path.join(prop.user_dir, 'hplip.conf'), QSettings.IniFormat)
- self.systray_visible = SYSTRAY_VISIBLE_SHOW_ALWAYS
+ self.systray_visible = SYSTRAY_VISIBLE_HIDE_WHEN_INACTIVE
self.systray_messages = SYSTRAY_MESSAGES_SHOW_ALL
self.last_used_device_uri = ''
self.last_used_printer = ''
@@ -214,7 +214,7 @@
self.sync()
self.beginGroup("settings")
- self.systray_visible = value_int(self.value("systray_visible"))[0]
+ self.systray_visible = value_int(self.value("systray_visible"), self.systray_visible)[0]
self.systray_messages = value_int(self.value("systray_messages"))[0]