Skip to content

Commit

Permalink
select default device for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Jun 10, 2023
1 parent 520ad6d commit 48b1f40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ares-device/src/picker/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ impl PickPrompt for PickPromptWindows {
})
.collect(),
);
ui.devices.set_selection(
devices
.iter()
.position(|d| d.as_ref().default.unwrap_or(false)),
);

nwg::dispatch_thread_events();

Expand Down

0 comments on commit 48b1f40

Please sign in to comment.