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);
+                    }
+                }
             ]
         }
     }
