mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 11:04:15 +02:00
fix: cleaning tray icon update state after updating
This commit is contained in:
@@ -27,7 +27,6 @@ class UpdateCheck(QThread):
|
||||
def run(self):
|
||||
|
||||
while True:
|
||||
|
||||
updates = self.manager.list_updates()
|
||||
self.signal.emit(updates)
|
||||
time.sleep(self.check_interval)
|
||||
@@ -81,6 +80,9 @@ class TrayIcon(QSystemTrayIcon):
|
||||
if reason == self.Trigger:
|
||||
self.show_manage_window()
|
||||
|
||||
def verify_updates(self):
|
||||
self.notify_updates(self.manager.list_updates())
|
||||
|
||||
def notify_updates(self, updates: List[ApplicationUpdate]):
|
||||
|
||||
self.lock_notify.acquire()
|
||||
|
||||
Reference in New Issue
Block a user