File: 0016_Clean-up-sync-monitor-usage.patch

package info (click to toggle)
lomiri-calendar-app 1.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,472 kB
  • sloc: python: 723; javascript: 656; cpp: 25; makefile: 16; sh: 1
file content (49 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 6/7] Clean up sync-monitor usage

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
 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)
                 }
             }
-- 
2.39.5