Skip to content

Commit

Permalink
chore: add warning for instance lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ZickZenni committed Sep 6, 2024
1 parent 168c07e commit 6ae3448
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default class WaveCordApp {
logger.info('Starting app...');

if (!this.instanceLock) {
logger.warn('An instance is already open. Exiting...');
this.quit();
return;
}
Expand Down Expand Up @@ -116,6 +117,7 @@ export default class WaveCordApp {
minHeight: 250,
icon: path.join(this.resourcesPath, 'icon.png'),
frame: false,
title: 'WaveCord',
webPreferences: {
preload: app.isPackaged
? path.join(__dirname, 'preload.js')
Expand Down

0 comments on commit 6ae3448

Please sign in to comment.