mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:27:21 +01:00
fixes UID display, adding new secret key when none are available, showing intro ui
This commit is contained in:
parent
0288e7bcb3
commit
9c51b78fde
3 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ public class ServerConfigurationManager
|
|||
|
||||
public bool HasValidConfig()
|
||||
{
|
||||
return CurrentServer != null && (CurrentServer?.Authentications.Any() ?? false);
|
||||
return CurrentServer != null;
|
||||
}
|
||||
|
||||
public string[] GetServerApiUrls()
|
||||
|
|
|
|||
|
|
@ -802,7 +802,7 @@ public class CompactUi : Window, IDisposable
|
|||
ServerState.Offline => "Unavailable",
|
||||
ServerState.RateLimited => "Rate Limited",
|
||||
ServerState.NoSecretKey => "No Secret Key",
|
||||
ServerState.Connected => _apiController.UID,
|
||||
ServerState.Connected => _apiController.DisplayName,
|
||||
_ => string.Empty
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ public class SettingsUi : Window, IDisposable
|
|||
ImGui.Separator();
|
||||
if (UiShared.IconTextButton(FontAwesomeIcon.Plus, "Add new Secret Key"))
|
||||
{
|
||||
selectedServer.SecretKeys.Add(selectedServer.SecretKeys.Last().Key + 1, new SecretKey()
|
||||
selectedServer.SecretKeys.Add(selectedServer.SecretKeys.LastOrDefault().Key + 1, new SecretKey()
|
||||
{
|
||||
FriendlyName = "New Secret Key",
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue