Skip to content

Commit d666682

Browse files
committed
fix: Server GUI should disable, not disappear, on server stop
Fixes #418
1 parent bc8f38e commit d666682

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Buttplug.Apps.ServerGUI/ServerControl.xaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public void StartServer()
202202

203203
ConnStatus.Content = "(Not Connected)";
204204
DisconnectButton.IsEnabled = false;
205-
ConnInfo.Visibility = Visibility.Visible;
205+
ConnInfo.IsEnabled = true;
206206
}
207207
catch (SocketException e)
208208
{
@@ -216,12 +216,12 @@ public void StartServer()
216216

217217
public void StopServer()
218218
{
219-
_ws.StopServer();
219+
_ws?.StopServer();
220220
ConnToggleButton.Content = "Start";
221221
SecureCheckBox.IsEnabled = true;
222222
PortTextBox.IsEnabled = true;
223223
LoopbackCheckBox.IsEnabled = true;
224-
ConnInfo.Visibility = Visibility.Collapsed;
224+
ConnInfo.IsEnabled = false;
225225
}
226226

227227
private void ConnToggleButton_Click(object aObj, RoutedEventArgs aEvent)

0 commit comments

Comments
 (0)