1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2020-10-08 10:13:02 +03:00
parent fb8c57b898
commit c458b685a0
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import { autoUpdater } from "electron-updater"
import logger from "./logger" import logger from "./logger"
export class AppUpdater { export class AppUpdater {
static defaultUpdateIntervalMs = 1000 * 60 * 60 * 24 // once a day static readonly defaultUpdateIntervalMs = 1000 * 60 * 60 * 24 // once a day
static checkForUpdates() { static checkForUpdates() {
return autoUpdater.checkForUpdatesAndNotify() return autoUpdater.checkForUpdatesAndNotify()

View File

@ -86,7 +86,7 @@ app.on("activate", (event, hasVisibleWindows) => {
// Quit app on Cmd+Q (MacOS) // Quit app on Cmd+Q (MacOS)
app.on("will-quit", (event) => { app.on("will-quit", (event) => {
logger.info('APP:QUIT'); 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) { if (userStore.preferences.trayEnabled) {
return; // with tray the app remains open return; // with tray the app remains open