Skip to content

Commit

Permalink
Merge pull request #19 from AShifter/master
Browse files Browse the repository at this point in the history
Fix application closing when choosing mode on Windows
  • Loading branch information
jvyden authored Jun 15, 2022
2 parents 7191d00 + b872eba commit 8c8aba3
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions UnionPatcher.Gui/Forms/ModeSelectionForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,24 @@ public ModeSelectionForm() {
}

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

Expand Down

0 comments on commit 8c8aba3

Please sign in to comment.