Fixes to locked logging IDs and Control Panel

This commit is contained in:
Cyberboss
2017-11-01 18:37:34 -04:00
parent eace72f747
commit 14a374a6e9
3 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -95,8 +95,7 @@ namespace TGControlPanel
/// <param name="instanceName">The name of the <see cref="TGServiceInterface.Components.ITGInstance"/> to connect to</param>
async void TryConnectToInstance(string instanceName)
{
var activeCP = ControlPanel.InstancesInUse[instanceName];
if(activeCP != null)
if(ControlPanel.InstancesInUse.TryGetValue(instanceName, out ControlPanel activeCP))
{
activeCP.BringToFront();
return;