mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
fb8c57b898
commit
c458b685a0
2 files changed
+2
-2
No files matched your search
@@ -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()
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user