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:
@@ -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);
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user