chore: format

This commit is contained in:
Gabriele Musco 2024-01-27 18:08:02 +01:00
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(); let dest = get_openvrpaths_vrpath_path();
set_file_readonly(&dest, false)?; set_file_readonly(&dest, false)?;
backup_steam_openvrpaths(); backup_steam_openvrpaths();
dump_current_openvrpaths(&build_profile_openvrpaths( dump_current_openvrpaths(&build_profile_openvrpaths(profile))?;
profile
))?;
set_file_readonly(&dest, true)?; set_file_readonly(&dest, true)?;
Ok(()) Ok(())
} }

View file

@ -165,7 +165,9 @@ impl App {
if let Err(e) = set_current_active_runtime_to_profile(&prof) { if let Err(e) = set_current_active_runtime_to_profile(&prof) {
alert( alert(
"Failed to start XR Service", "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>()), Some(&self.app_win.clone().upcast::<gtk::Window>()),
); );
return; return;
@ -173,7 +175,9 @@ impl App {
if let Err(e) = set_current_openvrpaths_to_profile(&prof) { if let Err(e) = set_current_openvrpaths_to_profile(&prof) {
alert( alert(
"Failed to start XR Service", "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>()), Some(&self.app_win.clone().upcast::<gtk::Window>()),
); );
return; return;