fix(settings): skip intro and window reload

This commit is contained in:
neoapps-dev 2026-07-12 17:14:42 +03:00
parent 15cc9d504a
commit eb282902d7
4 changed files with 4 additions and 0 deletions

View file

@ -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!)

View file

@ -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,

View file

@ -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>>,

View file

@ -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);
}