Skip to content

Commit

Permalink
fixed up save pw
Browse files Browse the repository at this point in the history
  • Loading branch information
amydevs committed Jul 12, 2022
1 parent 31eae5d commit 2dbe6ba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<SavedLauncherAuth>(&val) {
self_inst.saved_auth = foundauthvec;
if let Ok(val) = self_inst.entry.get_password() {
if let Ok(foundauthvec) = serde_json::from_str::<SavedLauncherAuth>(&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
}
}
Expand Down

0 comments on commit 2dbe6ba

Please sign in to comment.