rework configuration save, load configuration backups when available and config cannot be read

This commit is contained in:
Stanley Dimant
2024-11-30 18:09:18 +01:00
parent eb385a859c
commit d60d1979ce
12 changed files with 213 additions and 55 deletions

View File

@@ -350,7 +350,7 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase
using var _ = ImRaii.PushId(bannedUser.UID);
if (_uiSharedService.IconTextButton(FontAwesomeIcon.Check, "Unban"))
{
_ = _apiController.GroupUnbanUser(bannedUser);
_apiController.GroupUnbanUser(bannedUser);
_bannedUsers.RemoveAll(b => string.Equals(b.UID, bannedUser.UID, StringComparison.Ordinal));
}
}