@@ -3756,38 +3756,33 @@ Item {
37563756 }
37573757
37583758 SubHeading {
3759- text: "Shared Backup"
3759+ text: "Automatic Board Backup"
37603760 }
37613761
37623762 SetupDescription {
3763+ id: setupAutoBackupDate
37633764 font.pointSize: 10
37643765 horizontalAlignment: TextInput.AlignHCenter
3765- visible: !!tuneManager.fullBackup
3766- text: tuneManager.fullBackup ? Qt.formatDateTime(tuneManager.fullBackup.date) : ""
3767- }
3768-
3769- RowLayout {
3770- Layout.fillWidth: true
3771- Layout.alignment: Qt.AlignHCenter
3772-
3773- Button {
3774- Layout.alignment: Qt.AlignHCenter
3766+ property var backup: null
3767+ visible: !!backup
3768+ text: backup ? Qt.formatDateTime(backup.date) : ""
37753769
3776- text: "Backup"
3770+ Connections {
3771+ target: tuneManager
37773772
3778- onClicked: {
3779- tuneManager.globalBackup() ;
3773+ function onAutoBackupFinished(backup) {
3774+ setupAutoBackupDate.backup = backup ;
37803775 }
37813776 }
3777+ }
37823778
3783- Button {
3784- Layout.alignment: Qt.AlignHCenter
3779+ Button {
3780+ Layout.alignment: Qt.AlignHCenter
37853781
3786- text: "View"
3782+ text: "View"
37873783
3788- onClicked: {
3789- tuneManager.globalRestore();
3790- }
3784+ onClicked: {
3785+ tuneManager.autoRestore();
37913786 }
37923787 }
37933788
@@ -3838,33 +3833,38 @@ Item {
38383833 }
38393834
38403835 SubHeading {
3841- text: "Automatic Board Backup"
3836+ text: "Shared Backup"
38423837 }
38433838
38443839 SetupDescription {
3845- id: setupAutoBackupDate
38463840 font.pointSize: 10
38473841 horizontalAlignment: TextInput.AlignHCenter
3848- property var backup: null
3849- visible: !!backup
3850- text: backup ? Qt.formatDateTime(backup.date) : ""
3842+ visible: !!tuneManager.fullBackup
3843+ text: tuneManager.fullBackup ? Qt.formatDateTime(tuneManager.fullBackup.date) : ""
3844+ }
38513845
3852- Connections {
3853- target: tuneManager
3846+ RowLayout {
3847+ Layout.fillWidth: true
3848+ Layout.alignment: Qt.AlignHCenter
38543849
3855- function onAutoBackupFinished(backup) {
3856- setupAutoBackupDate.backup = backup;
3850+ Button {
3851+ Layout.alignment: Qt.AlignHCenter
3852+
3853+ text: "Backup"
3854+
3855+ onClicked: {
3856+ tuneManager.globalBackup();
38573857 }
38583858 }
3859- }
38603859
3861- Button {
3862- Layout.alignment: Qt.AlignHCenter
3860+ Button {
3861+ Layout.alignment: Qt.AlignHCenter
38633862
3864- text: "View"
3863+ text: "View"
38653864
3866- onClicked: {
3867- tuneManager.autoRestore();
3865+ onClicked: {
3866+ tuneManager.globalRestore();
3867+ }
38683868 }
38693869 }
38703870
0 commit comments