diff options
Diffstat (limited to 'AnodyneArchipelago/Menu')
-rw-r--r-- | AnodyneArchipelago/Menu/ConnectionState.cs | 10 | ||||
-rw-r--r-- | AnodyneArchipelago/Menu/MenuState.cs | 6 |
2 files changed, 15 insertions, 1 deletions
diff --git a/AnodyneArchipelago/Menu/ConnectionState.cs b/AnodyneArchipelago/Menu/ConnectionState.cs index 877213f..3eac618 100644 --- a/AnodyneArchipelago/Menu/ConnectionState.cs +++ b/AnodyneArchipelago/Menu/ConnectionState.cs | |||
@@ -50,6 +50,16 @@ namespace AnodyneArchipelago.Menu | |||
50 | { | 50 | { |
51 | if (_connectionTask != null && _connectionTask.IsCompleted) | 51 | if (_connectionTask != null && _connectionTask.IsCompleted) |
52 | { | 52 | { |
53 | if (_connectionTask.IsFaulted) | ||
54 | { | ||
55 | _text = _connectionTask.Exception.ToString(); | ||
56 | _connectionTask = null; | ||
57 | |||
58 | UpdateDisplay(); | ||
59 | |||
60 | return; | ||
61 | } | ||
62 | |||
53 | LoginResult result = _connectionTask.Result; | 63 | LoginResult result = _connectionTask.Result; |
54 | 64 | ||
55 | if (result.Successful) | 65 | if (result.Successful) |
diff --git a/AnodyneArchipelago/Menu/MenuState.cs b/AnodyneArchipelago/Menu/MenuState.cs index c7be02a..7e8020e 100644 --- a/AnodyneArchipelago/Menu/MenuState.cs +++ b/AnodyneArchipelago/Menu/MenuState.cs | |||
@@ -135,7 +135,11 @@ namespace AnodyneArchipelago.Menu | |||
135 | { | 135 | { |
136 | if (!_hide) | 136 | if (!_hide) |
137 | { | 137 | { |
138 | _selector.Draw(); | 138 | if (_substate == null) |
139 | { | ||
140 | _selector.Draw(); | ||
141 | } | ||
142 | |||
139 | _versionLabel1.Draw(); | 143 | _versionLabel1.Draw(); |
140 | _versionLabel2.Draw(); | 144 | _versionLabel2.Draw(); |
141 | _serverLabel.Draw(); | 145 | _serverLabel.Draw(); |