mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-22 08:06:33 +00:00
run maximal one instance
This commit is contained in:
parent
30319197c6
commit
eeae431e79
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user