make sure devices are fetched when starting the app with argument '-a'

This commit is contained in:
GyulyVGC 2025-05-16 02:05:18 +02:00
parent 7ee989efda
commit c3f0595913

View file

@ -57,6 +57,7 @@ pub fn handle_cli_args() -> Task<Message> {
let mut boot_task_chain = window::get_latest().map(Message::StartApp);
if let Some(adapter) = args.adapter {
boot_task_chain = boot_task_chain
.chain(Task::done(Message::FetchDevices))
.chain(Task::done(Message::DeviceSelection(adapter)))
.chain(Task::done(Message::Start));
}