aboutsummaryrefslogtreecommitdiff
path: root/intimate/src/actions.js
blob: 2590656cefd743faead8199fe07838c4a3060be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
}