mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[ui] shortcuts: add Ctrl+N for new + allow Ctrl+S for initial save
This commit is contained in:
parent
30f99b01f2
commit
494cb71d3f
1 changed files with 3 additions and 2 deletions
|
@ -257,6 +257,7 @@ ApplicationWindow {
|
|||
title: "File"
|
||||
Action {
|
||||
text: "New"
|
||||
shortcut: "Ctrl+N"
|
||||
onTriggered: ensureSaved(function() { _reconstruction.new() })
|
||||
}
|
||||
Action {
|
||||
|
@ -268,8 +269,8 @@ ApplicationWindow {
|
|||
id: saveAction
|
||||
text: "Save"
|
||||
shortcut: "Ctrl+S"
|
||||
enabled: _reconstruction.graph.filepath != "" && !_reconstruction.undoStack.clean
|
||||
onTriggered: _reconstruction.save()
|
||||
enabled: !_reconstruction.graph.filepath || !_reconstruction.undoStack.clean
|
||||
onTriggered: _reconstruction.graph.filepath ? _reconstruction.save() : saveFileDialog.open()
|
||||
}
|
||||
Action {
|
||||
id: saveAsAction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue