Add notebook save
diff --git a/ide/qml/main.qml b/ide/qml/main.qml
index 2439e6c..ab86efd 100644
--- a/ide/qml/main.qml
+++ b/ide/qml/main.qml
@@ -9,7 +9,7 @@
id: root
width: 1080
height: 720
- title: "Notebook"
+ title: "Refal Notebook -- " + notebook.savePath
visible: true
Material.theme: Material.Light
@@ -18,6 +18,15 @@
menuBar: MenuBar {
Menu {
title: qsTr("&File")
+
+ Action {
+ text: "&Save"
+ shortcut: "Ctrl+s"
+
+ onTriggered: {
+ notebook.save()
+ }
+ }
}
Menu {
@@ -38,6 +47,11 @@
Notebook {
id: notebook
+
+ onSaveError: (message) =>
+ {
+ console.error(message)
+ }
}
ColumnLayout {