Skip to content

Commit edf3404

Browse files
committed
Update images and refactor startup logic in index.js
1 parent bf2069e commit edf3404

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

images/export.png

114 KB
Loading

images/main.png

207 KB
Loading

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const path = require('path');
55
let mainWindow;
66
let tray = null;
77

8+
if (require('electron-squirrel-startup')) app.quit();
9+
810
app.on('ready', () => {
911
mainWindow = new MicaBrowserWindow({
1012
width: 1200,
@@ -74,7 +76,6 @@ app.on('window-all-closed', () => {
7476
if (process.platform !== 'darwin') app.quit();
7577
});
7678

77-
if (require('electron-squirrel-startup')) app.quit();
7879

7980
function showNotification(title, body) {
8081
if (Notification.isSupported()) {

0 commit comments

Comments
 (0)