From af3050106f3af7539ac775abd9252cf6646d4387 Mon Sep 17 00:00:00 2001 From: SimplifiedPrivacy Date: Fri, 30 Oct 2026 15:01:41 -0400 Subject: [PATCH] Notifies on sync complete for the UI --- core/controllers/SyncController.py | 1 + core/observers/Notifications.py | 1 + 2 files changed, 2 insertions(+) diff --git a/core/controllers/SyncController.py b/core/controllers/SyncController.py index 2876877..b11aaab 100644 --- a/core/controllers/SyncController.py +++ b/core/controllers/SyncController.py @@ -183,6 +183,7 @@ def new_sync(client_observer: ClientObserver, connection_observer: ConnectionObs if save_successful: notification = "Finshed sync." Notifications.emit(EventType.STATUS_UPDATE, notification) + Notifications.emit(EventType.SYNC_COMPLETE, notification) return Result(valid=True, message=notification) else: error_msg = "Finshed sync, but had issues with the saving of metadata for next time." diff --git a/core/observers/Notifications.py b/core/observers/Notifications.py index a1c4708..1c97ebe 100644 --- a/core/observers/Notifications.py +++ b/core/observers/Notifications.py @@ -12,6 +12,7 @@ class EventType(Enum): STATUS_UPDATE = auto() SHOW_POPUP = auto() RESUME_ACTIONS = auto() + SYNC_COMPLETE = auto() class Notifications: _subscribers = {}