Skip to content

Commit

Permalink
Fix registry restore for rig rstudio <version>
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Jun 1, 2022
1 parent 633cb10 commit 4330f34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* `rig rstudio <version>` and `rig rstudio <version> <project>` work properly
again (#77).

* On Windows, `rig rstudio` now properly restores the default version after
starting RStudio, if a non-default version was specified.

# rig 0.4.0

## NEW NAME
Expand Down
2 changes: 1 addition & 1 deletion src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ pub fn sc_rstudio_(version: Option<&str>, project: Option<&str>) -> Result<(), B
// they are different
let def = sc_get_default()?;
let restore = match (version, def) {
(Some(v), Some(d)) => v == d,
(Some(v), Some(d)) => v != d,
_ => false,
};

Expand Down

0 comments on commit 4330f34

Please sign in to comment.