New fix for NA mitchell items. RPS-46. Fixed vehicle age bug RPS-51
This commit is contained in:
@@ -295,10 +295,12 @@ ipcMain.on(ipcTypes.app.toMain.checkForUpdates, (event, args) => {
|
||||
});
|
||||
|
||||
ipcMain.on(ipcTypes.app.toMain.downloadUpdates, (event, args) => {
|
||||
Nucleus.track("DOWNLOAD_UPDATE_FROM_RENDERER");
|
||||
autoUpdater.downloadUpdate();
|
||||
});
|
||||
|
||||
ipcMain.on(ipcTypes.app.toMain.installUpdates, (event, args) => {
|
||||
Nucleus.track("INSTALL_UPDATE_FROM_RENDERER");
|
||||
const isSilent = true;
|
||||
const isForceRunAfter = true;
|
||||
autoUpdater.quitAndInstall(isSilent, isForceRunAfter);
|
||||
@@ -313,24 +315,24 @@ autoUpdater.on("update-downloaded", (ev, info) => {
|
||||
Nucleus.track("UPDATE_DOWNLOADED", ev);
|
||||
// if (process.env.NODE_ENV === "production") {
|
||||
|
||||
dialog.showMessageBox(
|
||||
{
|
||||
dialog
|
||||
.showMessageBox({
|
||||
type: "info",
|
||||
title: "ImeX RPS Update Manager",
|
||||
message: `ImEX RPS is ready to update to Version ${ev.version}. It is highly recommended that you update immediately. Would you like to update now? RPS will automatically restart.`,
|
||||
buttons: ["Yes", "No"],
|
||||
},
|
||||
(buttonIndex) => {
|
||||
if (buttonIndex === 0) {
|
||||
})
|
||||
.then(({ response }) => {
|
||||
log.log("The button worked.", response);
|
||||
if (response === 0) {
|
||||
const isSilent = true;
|
||||
const isForceRunAfter = true;
|
||||
store.set("showChangeLog", true);
|
||||
autoUpdater.quitAndInstall(isSilent, isForceRunAfter);
|
||||
} else {
|
||||
logger.error("Error");
|
||||
log.warn("Updated ignored.");
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
async function checkForUpdates() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user