Implement KeepOpening
This commit is contained in:
parent
37d5daf2af
commit
9ad321faed
|
@ -86,6 +86,11 @@ namespace RDP_Portal {
|
||||||
try {
|
try {
|
||||||
var exeProcess = Process.Start(startInfo) ?? throw new InvalidOperationException();
|
var exeProcess = Process.Start(startInfo) ?? throw new InvalidOperationException();
|
||||||
exeProcess.WaitForExit();
|
exeProcess.WaitForExit();
|
||||||
|
|
||||||
|
if (!_config.KeepOpening) {
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
MessageBox.Show(ex.ToString());
|
MessageBox.Show(ex.ToString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue