1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

keybinds: add log if ShortcutInhibitor is missing

This commit is contained in:
bbedward
2025-12-18 14:15:54 -05:00
parent 4aefa0f1f7
commit 83b81be825
2 changed files with 6 additions and 2 deletions

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);

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";