hyprland/global_shortcuts: fix crash when protocol is not present

This commit is contained in:
outfoxxed 2024-05-19 02:32:43 -07:00
parent 3e80c4a4fd
commit f1f3318d08
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -25,7 +25,7 @@ void GlobalShortcut::onPostReload() {
} }
auto* manager = GlobalShortcutManager::instance(); auto* manager = GlobalShortcutManager::instance();
if (manager == nullptr) { if (!manager->isActive()) {
qWarning() << "The active compositor does not support hyprland_global_shortcuts_v1."; qWarning() << "The active compositor does not support hyprland_global_shortcuts_v1.";
qWarning() << "GlobalShortcut will not work."; qWarning() << "GlobalShortcut will not work.";
return; return;