mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-01 21:58:40 +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) {
|
private void openRemotePatcher(object sender, EventArgs e) {
|
||||||
new RemotePatchForm().Show();
|
RemotePatchForm rpForm = new RemotePatchForm();
|
||||||
this.Close();
|
rpForm.Show();
|
||||||
|
rpForm.Closed += OnSubFormClose;
|
||||||
|
|
||||||
|
this.Visible = false;
|
||||||
}
|
}
|
||||||
private void openLocalPatcher(object sender, EventArgs e) {
|
private void openLocalPatcher(object sender, EventArgs e) {
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
private void openFilePatcher(object sender, EventArgs e) {
|
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();
|
this.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue