mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2026-08-31 15:11:36 +00:00
make sure devices are fetched when starting the app with argument '-a'
This commit is contained in:
parent
7ee989efda
commit
c3f0595913
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue