From 9ad321faed8476e1cb60bf035cd51cf911b7601f Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 29 Oct 2022 00:06:21 +0800 Subject: [PATCH] Implement KeepOpening --- src/MainForm.cs | 5 +++++ 1 file changed, 5 insertions(+) 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()); }