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