Fix QuickSwitcher activation

By making sure the global menu bar is disabled when not needed. This
should also help with memory usage.

Fix #482
This commit is contained in:
Carl Schwan
2021-12-25 14:41:43 +01:00
parent dce7fde7a6
commit e79e06235f
2 changed files with 7 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ Kirigami.ApplicationWindow {
}
Loader {
active: !Kirigami.Settings.isMobile
active: Kirigami.Settings.hasPlatformMenuBar && !Kirigami.Settings.isMobile
source: Qt.resolvedUrl("qrc:/imports/NeoChat/Menu/GlobalMenu.qml")
}
@@ -66,16 +66,9 @@ Kirigami.ApplicationWindow {
function onYChanged() { saveWindowGeometryTimer.restart(); }
}
Shortcut {
sequence: "Ctrl+K"
onActivated: {
quickView.item.open()
}
}
Loader {
id: quickView
active: !Kirigami.Settings.isMobile
sourceComponent: QuickSwitcher { }
}