mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-19 08:47:19 +00:00
fix(settings): skip intro and window reload
This commit is contained in:
parent
15cc9d504a
commit
eb282902d7
|
|
@ -7,3 +7,4 @@
|
|||
- Fix critical bug in Workshop that deleted worlds and DLCs
|
||||
- Fix random disconnects on Windows
|
||||
- Show multiplayer status on Discord RPC
|
||||
- Fix skipping intro, fullscreen and legacy mode not importing in Settings (thanks Ryuzaki!)
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ pub fn load_config_raw(app: AppHandle) -> AppConfig {
|
|||
music_vol: Some(50),
|
||||
sfx_vol: Some(100),
|
||||
legacy_mode: Some(false),
|
||||
skip_intro: Some(false),
|
||||
mangohud_enabled: None,
|
||||
saved_servers: None,
|
||||
extra_launch_args: None,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ pub struct AppConfig {
|
|||
pub music_vol: Option<u32>,
|
||||
pub sfx_vol: Option<u32>,
|
||||
pub legacy_mode: Option<bool>,
|
||||
pub skip_intro: Option<bool>,
|
||||
pub mangohud_enabled: Option<bool>,
|
||||
pub saved_servers: Option<Vec<McServer>>,
|
||||
pub extra_launch_args: Option<Vec<String>>,
|
||||
|
|
|
|||
|
|
@ -521,6 +521,7 @@ const SettingsView = memo(function SettingsView() {
|
|||
playPressSound();
|
||||
try {
|
||||
await TauriService.importSettings();
|
||||
window.location.reload();
|
||||
} catch (e) {
|
||||
if (e !== "CANCELED") console.error(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue