mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:47:22 +01:00
fix issues with uid selection and in case of a bad/unparsable token
This commit is contained in:
parent
4f8292e2bf
commit
1ef6f50246
3 changed files with 42 additions and 24 deletions
|
|
@ -1315,7 +1315,7 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||
}
|
||||
else
|
||||
{
|
||||
friendlyName = item.UID;
|
||||
friendlyName = item.UID ?? "-";
|
||||
friendlyNameTranslation = "UID";
|
||||
}
|
||||
|
||||
|
|
@ -1346,7 +1346,7 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||
|
||||
if (!useOauth)
|
||||
{
|
||||
_uiShared.DrawCombo("Secret Key##" + item.CharacterName + i, keys, (w) => w.Value.FriendlyName,
|
||||
_uiShared.DrawCombo("Secret Key###" + item.CharacterName + i, keys, (w) => w.Value.FriendlyName,
|
||||
(w) =>
|
||||
{
|
||||
if (w.Key != item.SecretKeyIdx)
|
||||
|
|
@ -1358,7 +1358,7 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||
}
|
||||
else
|
||||
{
|
||||
_uiShared.DrawUIDComboForAuthentication(i, item, selectedServer.ServerUri);
|
||||
_uiShared.DrawUIDComboForAuthentication(i, item, selectedServer.ServerUri, _logger);
|
||||
}
|
||||
if (_uiShared.IconTextButton(FontAwesomeIcon.Trash, "Delete Character") && UiSharedService.CtrlPressed())
|
||||
_serverConfigurationManager.RemoveCharacterFromServer(idx, item);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue