Skip to content

Commit

Permalink
Set initial dir to CWD
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidmackenzie committed Jun 1, 2024
1 parent 0bcd7a2 commit 83d640f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/piggui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ impl Gpio {
async fn load_via_picker() -> io::Result<Option<(String, GPIOConfig)>> {
if let Some(handle) = rfd::AsyncFileDialog::new()
.set_title("Choose config file to load")
.set_directory(std::env::current_dir().unwrap())
.pick_file()
.await

Check warning on line 111 in src/piggui.rs

View check run for this annotation

Codecov / codecov/patch

src/piggui.rs#L106-L111

Added lines #L106 - L111 were not covered by tests
{
Expand All @@ -120,6 +121,7 @@ impl Gpio {
async fn save_via_picker(gpio_config: GPIOConfig) -> io::Result<()> {
if let Some(handle) = rfd::AsyncFileDialog::new()
.set_title("Choose file")
.set_directory(std::env::current_dir().unwrap())
.save_file()
.await

Check warning on line 126 in src/piggui.rs

View check run for this annotation

Codecov / codecov/patch

src/piggui.rs#L121-L126

Added lines #L121 - L126 were not covered by tests
{
Expand Down

0 comments on commit 83d640f

Please sign in to comment.