* [pdm-devel] [PATCH datacenter-manager] ui: also trigger a view change when only the context remote list changes
@ 2025-09-10 12:04 Dominik Csapak
2025-09-10 13:50 ` [pdm-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2025-09-10 12:04 UTC (permalink / raw)
To: pdm-devel
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@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
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-10 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-10 12:04 [pdm-devel] [PATCH datacenter-manager] ui: also trigger a view change when only the context remote list changes Dominik Csapak
2025-09-10 13:50 ` [pdm-devel] applied: " Thomas Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.