Change auto updater to check continuously. Add Double click to tray.
This commit is contained in:
@@ -127,9 +127,4 @@ ipcMain.on(ipcTypes.toMain.updates.download, () => {
|
||||
autoUpdater.downloadUpdate();
|
||||
});
|
||||
|
||||
ipcMain.on(ipcTypes.toMain.updates.checkForUpdates, () => {
|
||||
log.info("Checking for updates from renderer.");
|
||||
autoUpdater.checkForUpdates();
|
||||
});
|
||||
|
||||
logIpcMessages();
|
||||
|
||||
@@ -2,6 +2,8 @@ import { IpcMainEvent, shell } from "electron";
|
||||
import log from "electron-log/main";
|
||||
import { autoUpdater } from "electron-updater";
|
||||
import { User } from "firebase/auth";
|
||||
import errorTypeCheck from "../../util/errorTypeCheck";
|
||||
import ipcTypes from "../../util/ipcTypes.json";
|
||||
import client from "../graphql/graphql-client";
|
||||
import {
|
||||
ActiveBodyshopQueryResult,
|
||||
@@ -10,9 +12,8 @@ import {
|
||||
QUERY_MASTERDATA_TYPED,
|
||||
} from "../graphql/queries";
|
||||
import Store from "../store/store";
|
||||
import errorTypeCheck from "../../util/errorTypeCheck";
|
||||
import { checkForAppUpdatesContinuously } from "../util/checkForAppUpdates";
|
||||
import { sendIpcToRenderer } from "../util/toRenderer";
|
||||
import ipcTypes from "../../util/ipcTypes.json";
|
||||
|
||||
const ipcMainHandleAuthStateChanged = async (
|
||||
_event: IpcMainEvent,
|
||||
@@ -60,7 +61,7 @@ const ipcMainHandleAuthStateChanged = async (
|
||||
"Error connecting to ImEX Online servers to get shop data. Please try again.",
|
||||
);
|
||||
}
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
checkForAppUpdatesContinuously();
|
||||
};
|
||||
|
||||
const ipMainHandleResetPassword = async (): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user