Skip to content

Commit

Permalink
build: 1.10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Oct 11, 2023
1 parent 792a6ca commit 5b8d7bb
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 227 deletions.
9 changes: 5 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ autoUpdater.requestHeaders = { "Cache-Control": "no-store, no-cache, must-revali
let MainWindow;
let SettingWindow;
let tray = null;
let toggleFullscreen = false;
const _hide = (process.argv.includes("--start")) ? true : false;
let reload = false;
let resize_clock;
let UPDATE = false;

Object.defineProperty(TREM, "isPackaged", {
get() {
Expand Down Expand Up @@ -229,10 +228,12 @@ TREM.on("before-quit", () => {
if (tray) {
tray.destroy();
}
if (UPDATE) {
autoUpdater.quitAndInstall();
}
});

ipcMain.on("toggleFullscreen", () => {
toggleFullscreen = true;
if (MainWindow) {
MainWindow.setFullScreen(!MainWindow.isFullScreen());
}
Expand Down Expand Up @@ -293,5 +294,5 @@ autoUpdater.on("update-downloaded", (info) => {
if (SettingWindow) {
SettingWindow.setClosable(true);
}
autoUpdater.quitAndInstall();
UPDATE = true;
});
Loading

0 comments on commit 5b8d7bb

Please sign in to comment.