diff --git a/mix/qml/StateDialog.qml b/mix/qml/StateDialog.qml index a2f9b7fa8..fa48c640e 100644 --- a/mix/qml/StateDialog.qml +++ b/mix/qml/StateDialog.qml @@ -37,7 +37,6 @@ Window { isDefault = setDefault; titleField.focus = true; defaultCheckBox.enabled = !isDefault; - } function close() { @@ -89,7 +88,6 @@ Window { Layout.fillWidth: true } - Label { text: qsTr("Transactions") } diff --git a/mix/qml/main.qml b/mix/qml/main.qml index a90c90feb..720d5070d 100644 --- a/mix/qml/main.qml +++ b/mix/qml/main.qml @@ -92,14 +92,14 @@ ApplicationWindow { Connections { target: projectModel.stateListModel - onDefaultStateChanged: - { - debugRunAction.text = qsTr("Deploy") + " \"" + projectModel.stateListModel.defaultStateName() + "\""; - } - onStateListModelReady: + + function updateRunLabel() { debugRunAction.text = qsTr("Deploy") + " \"" + projectModel.stateListModel.defaultStateName() + "\""; } + + onDefaultStateChanged: updateRunLabel() + onStateListModelReady: updateRunLabel() } Action {