Compactor multi-threaded, fixed many of IDE warnings
This commit is contained in:
@@ -222,6 +222,13 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase
|
||||
{
|
||||
ImGui.Dummy(new Vector2(5));
|
||||
|
||||
if (_profileData == null)
|
||||
{
|
||||
UiSharedService.ColorTextWrapped("Failed to load profile data.", ImGuiColors.DalamudRed);
|
||||
ImGui.TreePop();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_profileImage.SequenceEqual(_profileData.ImageData.Value))
|
||||
{
|
||||
_profileImage = _profileData.ImageData.Value;
|
||||
@@ -379,7 +386,7 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase
|
||||
UiSharedService.AttachToolTip("Clears your profile description text");
|
||||
ImGui.Separator();
|
||||
ImGui.TextUnformatted($"Profile Options:");
|
||||
var isNsfw = _profileData.IsNsfw;
|
||||
var isNsfw = _profileData?.IsNsfw ?? false;
|
||||
if (ImGui.Checkbox("Profile is NSFW", ref isNsfw))
|
||||
{
|
||||
_ = _apiController.GroupSetProfile(new GroupProfileDto(new GroupData(GroupFullInfo.Group.AliasOrGID), Description: null, Tags: null, PictureBase64: null, BannerBase64: null, IsNsfw: isNsfw, IsDisabled: null));
|
||||
|
||||
Reference in New Issue
Block a user