From 26ceb4e875eb5c5d8883bc82b83a3298ffbd8b17 Mon Sep 17 00:00:00 2001 From: Stanley Dimant Date: Mon, 23 Dec 2024 00:29:20 +0100 Subject: [PATCH] don't draw update uids if oauth is disabled --- MareSynchronos/UI/UISharedService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MareSynchronos/UI/UISharedService.cs b/MareSynchronos/UI/UISharedService.cs index 8ec139a..19a0b5f 100644 --- a/MareSynchronos/UI/UISharedService.cs +++ b/MareSynchronos/UI/UISharedService.cs @@ -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)