Skip to content

Commit

Permalink
Time Travel
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace-Krypton committed Jul 17, 2023
1 parent b965721 commit 198adca
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion qml/Main.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import QtQuick
import QtQuick.Window
import QtQuick.Dialogs
import QtQuick.Controls

ApplicationWindow {
Expand All @@ -24,7 +25,8 @@ ApplicationWindow {

Action {
text: qsTr("Save")
onTriggered: mainPage.system.writeToAFile(utils.properties(mainPage))
// onTriggered: mainPage.system.writeToAFile(utils.properties(mainPage))
onTriggered: fileDialogComponent.open()
}

MenuSeparator {}
Expand Down Expand Up @@ -109,6 +111,15 @@ ApplicationWindow {
}
}

FileDialog {
id: fileDialogComponent

onAccepted: {
mainPage.system.writeToAFile(utils.properties(mainPage),
fileDialogComponent.currentFile)
}
}

Utils {
id: utils
}
Expand Down

0 comments on commit 198adca

Please sign in to comment.