1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -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); Store.parse(root, obj);
applyStoredTheme(); applyStoredTheme();
applyStoredIconTheme(); applyStoredIconTheme();
Processes.detectIcons();
Processes.detectQtTools(); Processes.detectQtTools();
} catch (e) { } catch (e) {
console.warn("SettingsData: Failed to load settings:", e.message); console.warn("SettingsData: Failed to load settings:", e.message);

View File

@@ -5,13 +5,18 @@ import QtCore
import QtQuick import QtQuick
import Quickshell import Quickshell
import Quickshell.Io import Quickshell.Io
import Quickshell.Wayland
import qs.Common import qs.Common
import "../Common/KeybindActions.js" as Actions import "../Common/KeybindActions.js" as Actions
Singleton { Singleton {
id: root id: root
Component.onCompleted: {
if (!shortcutInhibitorAvailable) {
console.warn("[KeybindsService] ShortcutInhibitor is not available in this environment, keybinds editor disabled.");
}
}
readonly property bool shortcutInhibitorAvailable: { readonly property bool shortcutInhibitorAvailable: {
try { try {
return typeof ShortcutInhibitor !== "undefined"; return typeof ShortcutInhibitor !== "undefined";