invert if condition for updater

pull/35/head
Miepee 4 years ago
parent d95d5c8a1d
commit 3d208fdaef

@ -100,8 +100,12 @@ public static class LauncherUpdater
// Check settings if autoUpdateLauncher is set to true
bool autoUpdate = Boolean.Parse(MainForm.ReadFromConfig("AutoUpdateLauncher"));
if (autoUpdate)
if (!autoUpdate)
{
log.Info("AutoUpdate Launcher set to false. Exiting update check.");
return;
}
log.Info("AutoUpdate Launcher set to true!");
// This is supposed to fix the updater throwing an exception on windows 7 and earlier(?)
@ -238,9 +242,4 @@ public static class LauncherUpdater
Process.Start(updatePath + "/" + CrossPlatformOperations.LauncherName);
Environment.Exit(0);
}
else
{
log.Info("AutoUpdate Launcher set to false. Exiting update check.");
}
}
}
Loading…
Cancel
Save