mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
don't draw update uids if oauth is disabled
This commit is contained in:
parent
34511e5f01
commit
26ceb4e875
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue