Skip to content

Commit b2c9f07

Browse files
committed
flip CanShowMessageLabel around into an error exit
1 parent 841ce65 commit b2c9f07

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

FlashpointSecurePlayer/FlashpointSecurePlayerGUI.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ private bool ShowOutput(string text) {
109109
return false;
110110
}
111111

112-
if (CanShowMessageLabel(text)) {
113-
messageLabel.Text = text;
114-
return true;
112+
if (!CanShowMessageLabel(text)) {
113+
MessageBox.Show(text, Properties.Resources.FlashpointSecurePlayer, MessageBoxButtons.OK, MessageBoxIcon.None);
114+
return false;
115115
}
116116

117-
MessageBox.Show(text, Properties.Resources.FlashpointSecurePlayer, MessageBoxButtons.OK, MessageBoxIcon.None);
118-
return false;
117+
messageLabel.Text = text;
118+
return true;
119119
}
120120

121121
private bool ShowError(string text) {
@@ -125,13 +125,13 @@ private bool ShowError(string text) {
125125
return false;
126126
}
127127

128-
if (CanShowMessageLabel(text)) {
129-
messageLabel.Text = text;
130-
return true;
128+
if (!CanShowMessageLabel(text)) {
129+
MessageBox.Show(text, Properties.Resources.FlashpointSecurePlayer, MessageBoxButtons.OK, MessageBoxIcon.Error);
130+
return false;
131131
}
132132

133-
MessageBox.Show(text, Properties.Resources.FlashpointSecurePlayer, MessageBoxButtons.OK, MessageBoxIcon.Error);
134-
return false;
133+
messageLabel.Text = text;
134+
return true;
135135
}
136136

137137
private void ShowNoGameSelected() {

0 commit comments

Comments
 (0)