mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-22 08:06:33 +00:00
inform of already running instance
This commit is contained in:
parent
62a8999f47
commit
9333af5369
@ -10,8 +10,10 @@ import { InputDevicesStatus } from './utils'
|
|||||||
export const DEV = !app.isPackaged
|
export const DEV = !app.isPackaged
|
||||||
|
|
||||||
// Enforce single instance
|
// Enforce single instance
|
||||||
const isMain = app.requestSingleInstanceLock()
|
if (!app.requestSingleInstanceLock()) {
|
||||||
if (!isMain) app.quit()
|
logger.warn('Another instance is already running. Exiting.')
|
||||||
|
app.quit()
|
||||||
|
}
|
||||||
|
|
||||||
// Disable gpu
|
// Disable gpu
|
||||||
app.disableHardwareAcceleration()
|
app.disableHardwareAcceleration()
|
||||||
|
Loading…
Reference in New Issue
Block a user