Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-10-08 10:13:02 +03:00
1 parent fb8c57b898
commit c458b685a0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import { autoUpdater } from "electron-updater"
import logger from "./logger"
export class AppUpdater {
static defaultUpdateIntervalMs = 1000 * 60 * 60 * 24 // once a day
static readonly defaultUpdateIntervalMs = 1000 * 60 * 60 * 24 // once a day
static checkForUpdates() {
return autoUpdater.checkForUpdatesAndNotify()
+1 -1
View File
@@ -86,7 +86,7 @@ app.on("activate", (event, hasVisibleWindows) => {
// Quit app on Cmd+Q (MacOS)
app.on("will-quit", (event) => {
logger.info('APP:QUIT');
event.preventDefault(); // prevent app's default shutdown (e.g. required for mixpanel, GA, etc.)
event.preventDefault(); // prevent app's default shutdown (e.g. required for telemetry, etc.)
if (userStore.preferences.trayEnabled) {
return; // with tray the app remains open