Browse Source

Pressing enter on project window will now open the file dialog to save instead of just closing the window

Jack Ha 6 years ago
parent
commit
c036912752
1 changed files with 5 additions and 1 deletions
  1. 5 1
      resources/qml/WorkspaceSummaryDialog.qml

+ 5 - 1
resources/qml/WorkspaceSummaryDialog.qml

@@ -24,6 +24,10 @@ UM.Dialog
 
     signal yes();
 
+    function accept() {  // pressing enter will call this function
+        close();
+        yes();
+    }
 
     onClosing:
     {
@@ -290,4 +294,4 @@ UM.Dialog
             }
         }
     }
-}
+}