don't draw update uids if oauth is disabled

This commit is contained in:
Stanley Dimant
2024-12-23 00:29:20 +01:00
parent 34511e5f01
commit 26ceb4e875

View File

@@ -863,6 +863,9 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
public void DrawUpdateOAuthUIDsButton(ServerStorage selectedServer)
{
if (!selectedServer.UseOAuth2)
return;
using (ImRaii.Disabled(string.IsNullOrEmpty(selectedServer.OAuthToken)))
{
if ((_discordOAuthUIDs == null || _discordOAuthUIDs.IsCompleted)