diff options
author | 0neGal <mail@0negal.com> | 2023-05-06 23:08:10 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-05-06 23:08:10 +0200 |
commit | cfec36cbdf00b181e6560be15c6b341842894e00 (patch) | |
tree | 79695f247fdd886874617adf78015bccc7508bca /src/index.js | |
parent | 4e60274bbefa1ddf17cb5b7589b6915254063bbe (diff) | |
download | Viper-cfec36cbdf00b181e6560be15c6b341842894e00.tar.gz Viper-cfec36cbdf00b181e6560be15c6b341842894e00.zip |
change launch button text if game is running
This should've already been a thing, and was a thing for when the game
was currently launching, but this functionality seems to have been
broken at some point.
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index c6179e0..3d2f65b 100644 --- a/src/index.js +++ b/src/index.js @@ -156,6 +156,10 @@ function start() { ipcMain.on("update-now", () => { autoUpdater.quitAndInstall(); }) + + setInterval(async () => { + send("is-running", await is_running.game()); + }, 1000) } ipcMain.on("install-mod", () => { |