mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
hyprland/global_shortcuts: fix crash when protocol is not present
This commit is contained in:
2 files changed
+9
-1
No files matched your search
@@ -0,0 +1,8 @@
|
||||
name = "Quickshell.Services.PipeWire"
|
||||
description = "Pipewire API"
|
||||
headers = [
|
||||
"qml.hpp",
|
||||
"link.hpp",
|
||||
"node.hpp",
|
||||
]
|
||||
-----
|
||||
@@ -25,7 +25,7 @@ void GlobalShortcut::onPostReload() {
|
||||
}
|
||||
|
||||
auto* manager = GlobalShortcutManager::instance();
|
||||
if (manager == nullptr) {
|
||||
if (!manager->isActive()) {
|
||||
qWarning() << "The active compositor does not support hyprland_global_shortcuts_v1.";
|
||||
qWarning() << "GlobalShortcut will not work.";
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user