diff --git a/src/main.rs b/src/main.rs index f49242b..96c4dc2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -172,23 +172,23 @@ impl Default for ExaltaLauncher { } #[cfg(not(feature = "steam"))] - if self_inst.config.save_login { - if let Ok(val) = self_inst.entry.get_password() { - if let Ok(foundauthvec) = serde_json::from_str::(&val) { - self_inst.saved_auth = foundauthvec; + if let Ok(val) = self_inst.entry.get_password() { + if let Ok(foundauthvec) = serde_json::from_str::(&val) { + self_inst.saved_auth = foundauthvec; + if self_inst.config.save_login { if let Some(foundauth) = self_inst.saved_auth.saved.get(self_inst.saved_auth.current) { self_inst.auth = foundauth.clone(); } - + let res = self_inst.login(); if self_inst.run_res.result.is_ok() { self_inst.run_res = ResultTimeWrapper::default(); self_inst.run_res.result = res; } - }; + } }; - } - + }; + self_inst } }