[pdm-devel] [PATCH datacenter-manager] ui: also trigger a view change when only the context remote list changes
Dominik Csapak
d.csapak at proxmox.com
Wed Sep 10 14:04:33 CEST 2025
otherwise the ContextProvider does not get any updated data and things
like the remote links won't work.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
ui/src/main.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ui/src/main.rs b/ui/src/main.rs
index 3e4c5df..767a3cc 100644
--- a/ui/src/main.rs
+++ b/ui/src/main.rs
@@ -114,7 +114,10 @@ impl DatacenterManagerApp {
self.remote_list_error = None;
changed = true;
}
- self.remote_list = list.clone();
+ if self.remote_list != list {
+ self.remote_list = list.clone();
+ changed = true;
+ }
let remote_list_cache: Vec<RemoteListCacheEntry> = list
.into_iter()
--
2.47.3
More information about the pdm-devel
mailing list