Fixed refreshing of ban list
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user