mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 22:24:16 +02:00
fix: systray cleaning updates
This commit is contained in:
@@ -29,10 +29,7 @@ class UpdateCheck(QThread):
|
|||||||
while True:
|
while True:
|
||||||
|
|
||||||
updates = self.manager.list_updates()
|
updates = self.manager.list_updates()
|
||||||
|
self.signal.emit(updates)
|
||||||
if updates:
|
|
||||||
self.signal.emit(updates)
|
|
||||||
|
|
||||||
time.sleep(self.check_interval)
|
time.sleep(self.check_interval)
|
||||||
|
|
||||||
|
|
||||||
@@ -103,6 +100,7 @@ class TrayIcon(QSystemTrayIcon):
|
|||||||
system.notify_user(msg)
|
system.notify_user(msg)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
self.last_updates.clear()
|
||||||
new_icon = self.icon_default
|
new_icon = self.icon_default
|
||||||
self.set_default_tooltip()
|
self.set_default_tooltip()
|
||||||
|
|
||||||
@@ -113,7 +111,6 @@ class TrayIcon(QSystemTrayIcon):
|
|||||||
self.lock_notify.release()
|
self.lock_notify.release()
|
||||||
|
|
||||||
def show_manage_window(self):
|
def show_manage_window(self):
|
||||||
|
|
||||||
if self.manage_window is None:
|
if self.manage_window is None:
|
||||||
self.manage_window = ManageWindow(locale_keys=self.locale_keys,
|
self.manage_window = ManageWindow(locale_keys=self.locale_keys,
|
||||||
manager=self.manager,
|
manager=self.manager,
|
||||||
|
|||||||
Reference in New Issue
Block a user