fix: selection counter not resetting after pressing the refresh/reboot btn

How is it possible that no one has reported this bug in all this time? :)
This commit is contained in:
w1nst0n 2023-02-23 00:40:48 +01:00
commit 9f01eed2b5
No known key found for this signature in database
GPG key ID: 34D27465928A0A1D

View file

@ -127,11 +127,11 @@ impl Application for UadGui {
Command::none()
}
Message::RefreshButtonPressed => {
self.apps_view.loading_state = ListLoadingState::FindingPhones("".to_string());
self.apps_view = AppsView::default();
Command::perform(get_devices_list(), Message::LoadDevices)
}
Message::RebootButtonPressed => {
self.apps_view.loading_state = ListLoadingState::FindingPhones("".to_string());
self.apps_view = AppsView::default();
self.selected_device = None;
self.devices_list = vec![];
Command::perform(