properly enable or disable command menu items when a FNE connection is made or broken;

pull/1/head
Bryan Biedenkapp 11 months ago
parent ad08847e07
commit 0733d13b52

@ -300,6 +300,7 @@ namespace dvmconsole
Trace.WriteLine("FNE Peer connected");
Dispatcher.Invoke(() =>
{
EnableCommandControls();
systemStatusBox.Background = ChannelBox.GREEN_GRADIENT;
systemStatusBox.ConnectionState = "Connected";
});
@ -310,6 +311,7 @@ namespace dvmconsole
Trace.WriteLine("FNE Peer disconnected");
Dispatcher.Invoke(() =>
{
DisableCommandControls();
systemStatusBox.Background = ChannelBox.RED_GRADIENT;
systemStatusBox.ConnectionState = "Disconnected";
});

Loading…
Cancel
Save

Powered by TurnKey Linux.