mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:47:22 +01:00
easiest solutions to problems is just to remove the thing causing the problem
This commit is contained in:
parent
a3e62f5529
commit
85058379e7
3 changed files with 8 additions and 45 deletions
|
|
@ -1729,9 +1729,15 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||
if (useOauth)
|
||||
{
|
||||
_uiShared.DrawOAuth(selectedServer);
|
||||
if (string.IsNullOrEmpty(_serverConfigurationManager.GetDiscordUserFromToken(selectedServer)))
|
||||
{
|
||||
ImGuiHelpers.ScaledDummy(10f);
|
||||
UiSharedService.ColorTextWrapped("You have enabled OAuth2 but it is not linked. Press the buttons Check, then Authenticate to link properly.", ImGuiColors.DalamudRed);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(_serverConfigurationManager.GetDiscordUserFromToken(selectedServer))
|
||||
&& selectedServer.Authentications.TrueForAll(u => string.IsNullOrEmpty(u.UID)))
|
||||
{
|
||||
ImGuiHelpers.ScaledDummy(10f);
|
||||
UiSharedService.ColorTextWrapped("You have enabled OAuth2 but no characters configured. Set the correct UIDs for your characters in \"Character Management\".",
|
||||
ImGuiColors.DalamudRed);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue