Commit dceebad7 authored by Volker Krause's avatar Volker Krause

Disable settings action when we are already on the settings page

parent f3362c1a
......@@ -54,6 +54,7 @@ Kirigami.ApplicationWindow {
}
},
Kirigami.Action {
id: settingsAction
text: i18n("Settings...")
iconName: "settings-configure"
onTriggered: pageStack.push(settingsComponent)
......@@ -77,6 +78,13 @@ Kirigami.ApplicationWindow {
}
Component {
id: settingsComponent
App.SettingsPage {}
App.SettingsPage {
id: settingsPage
Binding {
target: settingsAction
property: "enabled"
value: !settingsPage.isCurrentPage
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment