From 9f01eed2b5eb2171912ed324a7a4fde28e4abd18 Mon Sep 17 00:00:00 2001 From: w1nst0n Date: Thu, 23 Feb 2023 00:40:48 +0100 Subject: [PATCH] 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? :) --- src/gui/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/mod.rs b/src/gui/mod.rs index 8f5ccc7..d7cb998 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -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(