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

keybinds: fix provider loading via IPC

This commit is contained in:
bbedward
2025-12-09 00:30:14 -05:00
parent 0be9ac4097
commit 8a83f03cc1
3 changed files with 53 additions and 32 deletions

View File

@@ -332,18 +332,16 @@ Item {
if (!provider)
return "ERROR: No provider specified";
KeybindsService.currentProvider = provider;
KeybindsService.loadBinds();
KeybindsService.loadCheatsheet(provider);
root.hyprKeybindsModalLoader.active = true;
if (!root.hyprKeybindsModalLoader.item)
return `KEYBINDS_TOGGLE_FAILED: ${provider}`;
if (root.hyprKeybindsModalLoader.item.shouldBeVisible) {
if (root.hyprKeybindsModalLoader.item.shouldBeVisible)
root.hyprKeybindsModalLoader.item.close();
} else {
else
root.hyprKeybindsModalLoader.item.open();
}
return `KEYBINDS_TOGGLE_SUCCESS: ${provider}`;
}
@@ -351,18 +349,16 @@ Item {
if (!provider)
return "ERROR: No provider specified";
KeybindsService.currentProvider = provider;
KeybindsService.loadBinds();
KeybindsService.loadCheatsheet(provider);
root.hyprKeybindsModalLoader.active = true;
if (!root.hyprKeybindsModalLoader.item)
return `KEYBINDS_TOGGLE_FAILED: ${provider}`;
if (root.hyprKeybindsModalLoader.item.shouldBeVisible) {
if (root.hyprKeybindsModalLoader.item.shouldBeVisible)
root.hyprKeybindsModalLoader.item.close();
} else {
else
root.hyprKeybindsModalLoader.item.open();
}
return `KEYBINDS_TOGGLE_SUCCESS: ${provider} (${path})`;
}
@@ -370,8 +366,7 @@ Item {
if (!provider)
return "ERROR: No provider specified";
KeybindsService.currentProvider = provider;
KeybindsService.loadBinds();
KeybindsService.loadCheatsheet(provider);
root.hyprKeybindsModalLoader.active = true;
if (!root.hyprKeybindsModalLoader.item)
@@ -385,8 +380,7 @@ Item {
if (!provider)
return "ERROR: No provider specified";
KeybindsService.currentProvider = provider;
KeybindsService.loadBinds();
KeybindsService.loadCheatsheet(provider);
root.hyprKeybindsModalLoader.active = true;
if (!root.hyprKeybindsModalLoader.item)