chore: format

This commit is contained in:
Gabriele Musco 2024-01-27 18:08:02 +01:00
parent fa6e8ac56a
commit ad792aa5df
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
2 changed files with 7 additions and 5 deletions

View file

@ -118,9 +118,7 @@ pub fn set_current_openvrpaths_to_profile(profile: &Profile) -> anyhow::Result<(
let dest = get_openvrpaths_vrpath_path();
set_file_readonly(&dest, false)?;
backup_steam_openvrpaths();
dump_current_openvrpaths(&build_profile_openvrpaths(
profile
))?;
dump_current_openvrpaths(&build_profile_openvrpaths(profile))?;
set_file_readonly(&dest, true)?;
Ok(())
}

View file

@ -165,7 +165,9 @@ impl App {
if let Err(e) = set_current_active_runtime_to_profile(&prof) {
alert(
"Failed to start XR Service",
Some(&format!("Error setting current active runtime to profile: {e}")),
Some(&format!(
"Error setting current active runtime to profile: {e}"
)),
Some(&self.app_win.clone().upcast::<gtk::Window>()),
);
return;
@ -173,7 +175,9 @@ impl App {
if let Err(e) = set_current_openvrpaths_to_profile(&prof) {
alert(
"Failed to start XR Service",
Some(&format!("Error setting current openvrpaths file to profile: {e}")),
Some(&format!(
"Error setting current openvrpaths file to profile: {e}"
)),
Some(&self.app_win.clone().upcast::<gtk::Window>()),
);
return;