mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 08:33:19 +01:00
Fixes to locked logging IDs and Control Panel
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user