Fix always showing the welcome page when upgrading from old versions

This commit is contained in:
huangyuhui 2018-07-29 13:25:15 +08:00
parent e31120be21
commit 484a103f27

View File

@ -42,7 +42,6 @@ public class Settings {
private Settings() { private Settings() {
firstLaunch = CONFIG.isFirstLaunch(); firstLaunch = CONFIG.isFirstLaunch();
CONFIG.setFirstLaunch(false);
ProxyManager.init(); ProxyManager.init();
Accounts.init(); Accounts.init();
@ -56,6 +55,7 @@ public class Settings {
} }
CONFIG.addListener(source -> save()); CONFIG.addListener(source -> save());
CONFIG.setFirstLaunch(false);
} }
private void save() { private void save() {