keybinds: add log if ShortcutInhibitor is missing

This commit is contained in:
bbedward committed 2025-12-18 14:15:54 -05:00
1 parent 4aefa0f1f7
commit 83b81be825
2 files changed
+6 -2

No files matched your search

-1
View File
@@ -668,7 +668,6 @@ Singleton {
Store.parse(root, obj);
applyStoredTheme();
applyStoredIconTheme();
Processes.detectIcons();
Processes.detectQtTools();
} catch (e) {
console.warn("SettingsData: Failed to load settings:", e.message);
+6 -1
View File
@@ -5,13 +5,18 @@ import QtCore
import QtQuick
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
import qs.Common
import "../Common/KeybindActions.js" as Actions
Singleton {
id: root
Component.onCompleted: {
if (!shortcutInhibitorAvailable) {
console.warn("[KeybindsService] ShortcutInhibitor is not available in this environment, keybinds editor disabled.");
}
}
readonly property bool shortcutInhibitorAvailable: {
try {
return typeof ShortcutInhibitor !== "undefined";