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

@@ -11,6 +11,12 @@ import org.kde.neochat 1.0
QQC2.Popup {
id: _popup
Shortcut {
sequence: "Ctrl+K"
enabled: !Kirigami.Settings.hasPlatformMenuBar
onActivated: _popup.open()
}
onVisibleChanged: {
if (!visible) {
return