Skip to content

Commit

Permalink
deploy: 26cc2bb
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 25, 2024
1 parent 853396b commit 0fe8557
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
9 changes: 6 additions & 3 deletions dorion-custom-keybinds/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@
const [keybind, setKeybind] = createSignal(props.initialKeybind || []);
const [keysPressed, setKeysPressed] = createSignal([]);
onCleanup(() => {
window.removeEventListener("keydown", keyDown), window.removeEventListener("keyup", keyUp);
window.removeEventListener("keydown", keyDown);
window.removeEventListener("keyup", keyUp);
});
const keyDown = (e) => {
const keycode = {
Expand Down Expand Up @@ -448,13 +449,15 @@
};
const setRecordingState = () => {
if (recording()) {
window.removeEventListener("keydown", keyDown), window.removeEventListener("keyup", keyUp);
window.removeEventListener("keydown", keyDown);
window.removeEventListener("keyup", keyUp);
props.onKeybindChange(keybind());
setRecording(false);
return;
}
setKeybind([]);
window.addEventListener("keydown", keyDown), window.addEventListener("keyup", keyUp);
window.addEventListener("keydown", keyDown);
window.addEventListener("keyup", keyUp);
setRecording(true);
};
return (() => {
Expand Down
2 changes: 1 addition & 1 deletion dorion-custom-keybinds/plugin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Dorion Custom Keybinds","description":"Enable the use of global, customized keybinds","author":"SpikeHD","hash":"c1fff98bbba407cbdab5e9ff5039db96"}
{"name":"Dorion Custom Keybinds","description":"Enable the use of global, customized keybinds","author":"SpikeHD","hash":"b54a148202a2bba592c25a15fb545bad"}
2 changes: 1 addition & 1 deletion dorion-settings/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@
});
if (requiresRestart2) {
setRestartRequired(true);
backendRestartRequired;
backendRestartRequired(true);
}
};
return [(0, import_web42.createComponent)(Header3, {
Expand Down
2 changes: 1 addition & 1 deletion dorion-settings/plugin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Dorion Settings","author":"SpikeHD","description":"Settings page for the Dorion client.","hash":"43b39c10a1569f9b7984a66854c4c2d2"}
{"name":"Dorion Settings","author":"SpikeHD","description":"Settings page for the Dorion client.","hash":"7c4cbf8b3ba9baea179678b2eb330def"}
10 changes: 6 additions & 4 deletions shelteRPC/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,12 @@
var hideClosed = () => _tmpl$3.cloneNode(true);
var injectedCss = false;
var deleteGame = (name) => {
backend !== "None" && event.emit("remove_detectable", {
name,
exe: ""
});
if (backend !== "None") {
event.emit("remove_detectable", {
name,
exe: ""
});
}
const key = Object.keys(store.previouslyPlayed).find((k) => store.previouslyPlayed[k].name === name);
delete store.previouslyPlayed[key];
if (store.currentlyPlaying === name) {
Expand Down
2 changes: 1 addition & 1 deletion shelteRPC/plugin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"shelteRPC","author":"SpikeHD","description":"arRPC implementation for Shelter","hash":"6607a7027388c49e9b4e0cde3383067e"}
{"name":"shelteRPC","author":"SpikeHD","description":"arRPC implementation for Shelter","hash":"7839404e886fa514b0f56e9f3c200313"}

0 comments on commit 0fe8557

Please sign in to comment.