File: 1008_Add-save-action-to-sync-target-editor-page-instead-of.patch

package info (click to toggle)
lomiri-cloudsync-app 0.8.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,560 kB
  • sloc: cpp: 1,053; python: 67; javascript: 25; makefile: 21; sh: 9
file content (32 lines) | stat: -rw-r--r-- 1,073 bytes parent folder | download | duplicates (2)
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
From c699ba3f81f2eb58995c0f616d843fe5e116f77a Mon Sep 17 00:00:00 2001
From: Guido Berhoerster <guido+debian@berhoerster.name>
Date: Tue, 26 Nov 2024 08:24:51 +0100
Subject: Add save action to sync target editor page instead of saving automatically

diff --git a/UBsync-ui/ui/EditTarget.qml b/UBsync-ui/ui/EditTarget.qml
index 97cc363..0ce8995 100644
--- a/UBsync-ui/ui/EditTarget.qml
+++ b/UBsync-ui/ui/EditTarget.qml
@@ -244,7 +244,6 @@ Page {
                 /* re-render anytime page is shown */
                 console.log("EditTarget :: editTargetPage activated")
                 targetPage.loadDB()
-                targetPage.updateDB() // initial saving of the new target
             }
         }
 
@@ -256,7 +255,13 @@ Page {
 
         trailingActionBar{
             actions: [
-
+                Action {
+                    iconName: "tick"
+                    onTriggered: {
+                        targetPage.updateDB();
+                        apl.removePages(targetPage);
+                    }
+                }
             ]
         }
     }