mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 13:45:49 +00:00
Reset icon state when backup is cancelled.
This commit is contained in:
parent
50fa73ba6c
commit
f9c9ddbf59
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,7 @@ def __init__(self, args, single_app=False):
|
|||
|
||||
self.backup_started_event.connect(self.backup_started_event_response)
|
||||
self.backup_finished_event.connect(self.backup_finished_event_response)
|
||||
self.backup_cancelled_event.connect(self.backup_cancelled_event_response)
|
||||
|
||||
def create_backup_action(self, profile_id=None):
|
||||
if not profile_id:
|
||||
|
@ -80,3 +81,7 @@ def backup_finished_event_response(self):
|
|||
self.tray.setIcon(icon)
|
||||
self.main_window.scheduleTab._draw_next_scheduled_backup()
|
||||
|
||||
def backup_cancelled_event_response(self):
|
||||
icon = QIcon(get_asset('icons/hdd-o.png'))
|
||||
self.tray.setIcon(icon)
|
||||
|
||||
|
|
Loading…
Reference in a new issue