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:
@@ -233,11 +233,14 @@ Singleton {
|
||||
loadBinds(true);
|
||||
}
|
||||
|
||||
function loadCheatsheet() {
|
||||
if (cheatsheetProcess.running || !cheatsheetAvailable)
|
||||
function loadCheatsheet(provider) {
|
||||
if (cheatsheetProcess.running)
|
||||
return;
|
||||
const target = provider || cheatsheetProvider;
|
||||
if (!target)
|
||||
return;
|
||||
cheatsheetLoading = true;
|
||||
cheatsheetProcess.command = ["dms", "keybinds", "show", cheatsheetProvider];
|
||||
cheatsheetProcess.command = ["dms", "keybinds", "show", target];
|
||||
cheatsheetProcess.running = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user