mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2025-09-02 08:50:40 +00:00
run maximal one instance
This commit is contained in:
@@ -8,6 +8,12 @@ import Updater from './updater'
|
||||
|
||||
export const DEV = !app.isPackaged
|
||||
|
||||
// Enforce single instance
|
||||
const isMain = app.requestSingleInstanceLock()
|
||||
if (!isMain) {
|
||||
app.quit()
|
||||
}
|
||||
|
||||
// Disable gpu
|
||||
app.disableHardwareAcceleration()
|
||||
app.commandLine.appendSwitch('disable-software-rasterizer')
|
||||
|
Reference in New Issue
Block a user