mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-22 16:16:30 +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
|
export const DEV = !app.isPackaged
|
||||||
|
|
||||||
|
// Enforce single instance
|
||||||
|
const isMain = app.requestSingleInstanceLock()
|
||||||
|
if (!isMain) {
|
||||||
|
app.quit()
|
||||||
|
}
|
||||||
|
|
||||||
// Disable gpu
|
// Disable gpu
|
||||||
app.disableHardwareAcceleration()
|
app.disableHardwareAcceleration()
|
||||||
app.commandLine.appendSwitch('disable-software-rasterizer')
|
app.commandLine.appendSwitch('disable-software-rasterizer')
|
||||||
|
Loading…
Reference in New Issue
Block a user