Implement KeepOpening

This commit is contained in:
Louis Lam 2022-10-29 00:06:21 +08:00
parent 37d5daf2af
commit 9ad321faed
1 changed files with 5 additions and 0 deletions

View File

@ -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());
}