mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-07-29 20:28:42 +00:00
Merge pull request #19 from AShifter/master
Fix application closing when choosing mode on Windows
This commit is contained in:
commit
8c8aba3287
1 changed files with 13 additions and 3 deletions
|
@ -27,14 +27,24 @@ public class ModeSelectionForm : Form {
|
|||
}
|
||||
|
||||
private void openRemotePatcher(object sender, EventArgs e) {
|
||||
new RemotePatchForm().Show();
|
||||
this.Close();
|
||||
RemotePatchForm rpForm = new RemotePatchForm();
|
||||
rpForm.Show();
|
||||
rpForm.Closed += OnSubFormClose;
|
||||
|
||||
this.Visible = false;
|
||||
}
|
||||
private void openLocalPatcher(object sender, EventArgs e) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
private void openFilePatcher(object sender, EventArgs e) {
|
||||
new FilePatchForm().Show();
|
||||
FilePatchForm fpForm = new FilePatchForm();
|
||||
fpForm.Show();
|
||||
fpForm.Closed += OnSubFormClose;
|
||||
|
||||
this.Visible = false;
|
||||
}
|
||||
private void OnSubFormClose(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue