diff options
author | RaindropsSys <raindrops@equestria.dev> | 2024-06-13 15:46:03 +0200 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2024-06-13 15:46:03 +0200 |
commit | e44e2fe070484e06d384a31ef2699c3a2d5d474e (patch) | |
tree | 2d5eb5d1b01646270d18cf1f2d94519966d6e7de /intimate/src/actions.js | |
download | faunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.tar.gz faunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.tar.bz2 faunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.zip |
GitHub migration
Diffstat (limited to 'intimate/src/actions.js')
-rwxr-xr-x | intimate/src/actions.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/intimate/src/actions.js b/intimate/src/actions.js new file mode 100755 index 0000000..2590656 --- /dev/null +++ b/intimate/src/actions.js @@ -0,0 +1,17 @@ +async function displayPause() { + if (!window.displayIsReady) return; + window.paused = true; + + try { + await require('electron/renderer').ipcRenderer.invoke("pauseDialog", window.currentImage); + } catch (e) { + console.error(e); + } + + window.paused = false; +} + +async function skipImage() { + if (!window.displayIsReady) return; + await doLoadNext(); +} |