Skip to content

Commit 48b1f40

Browse files
committed
select default device for windows
1 parent 520ad6d commit 48b1f40

File tree

1 file changed

+5
-0
lines changed
  • ares-device/src/picker/windows

1 file changed

+5
-0
lines changed

ares-device/src/picker/windows/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ impl PickPrompt for PickPromptWindows {
3030
})
3131
.collect(),
3232
);
33+
ui.devices.set_selection(
34+
devices
35+
.iter()
36+
.position(|d| d.as_ref().default.unwrap_or(false)),
37+
);
3338

3439
nwg::dispatch_thread_events();
3540

0 commit comments

Comments
 (0)