Enable Save As button even if project is not modified

This commit is contained in:
Alex Spataru 2024-11-27 12:11:35 -05:00
parent 28e6e5e35e
commit ca0c60c3ae

View File

@ -153,14 +153,14 @@ Rectangle {
}
//
// Save
// Save As
//
Widgets.BigButton {
text: qsTr("Save As")
Layout.alignment: Qt.AlignVCenter
onClicked: Cpp_JSON_ProjectModel.saveJsonFile(true)
icon.source: "qrc:/rcc/icons/project-editor/toolbar/save-as.svg"
enabled: Cpp_JSON_ProjectModel.modified && Cpp_JSON_ProjectModel.groupCount > 0 && Cpp_JSON_ProjectModel.datasetCount > 0
enabled: Cpp_JSON_ProjectModel.groupCount > 0 && Cpp_JSON_ProjectModel.datasetCount > 0
}
//