mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
Fix always showing the welcome page when upgrading from old versions
This commit is contained in:
parent
e31120be21
commit
484a103f27
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user