mirror of
https://github.com/jely2002/youtube-dl-gui.git
synced 2021-11-01 22:46:21 +03:00
fix: no longer check for updates if portable version is detected
This commit is contained in:
10
main.js
10
main.js
@@ -104,9 +104,13 @@ function startCriticalHandlers(env) {
|
||||
}
|
||||
})
|
||||
|
||||
let appUpdater = new AppUpdater(env, win);
|
||||
env.appUpdater = appUpdater;
|
||||
appUpdater.checkUpdate();
|
||||
|
||||
let appUpdater = new AppUpdater(env, win);
|
||||
env.appUpdater = appUpdater;
|
||||
if(!this.appPath.includes("\\AppData\\Local\\Temp\\")) {
|
||||
//Don't check the app when it is in portable mode
|
||||
appUpdater.checkUpdate();
|
||||
}
|
||||
|
||||
ipcMain.handle("installUpdate", () => {
|
||||
appUpdater.installUpdate();
|
||||
|
||||
Reference in New Issue
Block a user