From e44e2fe070484e06d384a31ef2699c3a2d5d474e Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 13 Jun 2024 15:46:03 +0200 Subject: GitHub migration --- intimate/src/actions.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 intimate/src/actions.js (limited to 'intimate/src/actions.js') 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(); +} -- cgit