mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
fb8c57b898
commit
c458b685a0
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user