From fa1e0406e256ce66d399e1e0f0b18974b15704fe Mon Sep 17 00:00:00 2001
From: Lionel Duboeuf <lduboeuf@ouvaton.org>
Date: Wed, 11 Dec 2024 17:17:08 +0100
Subject: [PATCH] Clean up sync-monitor usage

---
 src/qml/EventActions.qml | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/src/qml/EventActions.qml b/src/qml/EventActions.qml
index d46e8e25..63e50fb9 100644
--- a/src/qml/EventActions.qml
+++ b/src/qml/EventActions.qml
@@ -91,22 +91,6 @@ Item {
         filterBy.value: "calendar"
     }
 
-
-/*
-    SyncMonitor {
-        id: syncMonitor
-        onSyncError: {
-            console.log('SyncError:', account, service, error)
-            if (error != "canceled") {
-
-                syncErrorData.account = account
-                syncErrorData.error = error
-                syncErrorData.service = service
-            }
-        }
-    }
-    */
-
     Action{
         id: _showCalendarAction
         objectName: "calendarsbutton"
@@ -170,7 +154,7 @@ Item {
             Button {
                 text: i18n.tr("Retry sync")
                 onClicked: {
-                    syncMonitor.sync(["calendar"])
+                    buteoSync.synchronize()
                     PopupUtils.close(dialogue)
                 }
             }
-- 
GitLab

