mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-02 06:08:42 +00:00
chore: format
This commit is contained in:
parent
fa6e8ac56a
commit
ad792aa5df
2 changed files with 7 additions and 5 deletions
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue