diff --git a/src/MainForm.cs b/src/MainForm.cs index 1f1f6e3..a207a4f 100644 --- a/src/MainForm.cs +++ b/src/MainForm.cs @@ -86,6 +86,11 @@ namespace RDP_Portal { try { var exeProcess = Process.Start(startInfo) ?? throw new InvalidOperationException(); exeProcess.WaitForExit(); + + if (!_config.KeepOpening) { + this.Close(); + } + } catch (Exception ex) { MessageBox.Show(ex.ToString()); }