From 2eb0c463e3aa0ded28b3c97a90c8959a0dcc0688 Mon Sep 17 00:00:00 2001 From: cake Date: Sun, 4 Jan 2026 05:40:34 +0100 Subject: [PATCH] Fixed refreshing of ban list --- LightlessSync/UI/SyncshellAdminUI.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LightlessSync/UI/SyncshellAdminUI.cs b/LightlessSync/UI/SyncshellAdminUI.cs index eee8ab9..db380a0 100644 --- a/LightlessSync/UI/SyncshellAdminUI.cs +++ b/LightlessSync/UI/SyncshellAdminUI.cs @@ -740,7 +740,7 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase ImGui.TextUnformatted("Add new ban"); ImGui.PopStyleColor(); - UiSharedService.TextWrapped("Enter a UID and optional reason. (Hold CTRL to enable the ban button.)"); + UiSharedService.TextWrapped("Enter a UID (Not Alias!) and optional reason. (Hold CTRL to enable the ban button.)"); var style = ImGui.GetStyle(); float fullW = ImGui.GetContentRegionAvail().X; @@ -799,6 +799,7 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase _newBanError ??= "Ban failed (see log)."; } + QueueBanListRefresh(force: true); _newBanTask = null; } } @@ -821,7 +822,6 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase string targetUid = uidOrAlias; string? typedAlias = null; - // Try to resolve alias to UID if applicable var snap = _pairUiService.GetSnapshot(); if (snap.GroupPairs.TryGetValue(GroupFullInfo, out var pairs)) { @@ -877,6 +877,8 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase _editingBanUid = null; _banEditError = null; + await Task.Delay(450).ConfigureAwait(false); + QueueBanListRefresh(force: true); } catch (Exception ex)