Skip to content

Commit

Permalink
don't open pack folder automatically after pack creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyakase committed Dec 21, 2020
1 parent a2c6636 commit 67d07ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/MeadowLandMaker/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/MeadowLandMaker/PackGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ private void GenerateBtn_Click(object sender, EventArgs e) {

statusLabel.Text = $"{PackNameBox.Text} was created!";
File.Delete(tempfile);
Process.Start($@"{mllappdata}/packs");
StopGenerator();
DialogResult woo = MessageBox.Show($"{PackNameBox.Text} was created! Would you like to open the Pack Folder now?", "MeadowLand Maker", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if(woo == DialogResult.Yes) { Process.Start($@"{mllappdata}/packs"); }
}

private void StopGenerator(bool DeleteZipData = false, string finalpath = "", string temppath = "") {
Expand Down
4 changes: 2 additions & 2 deletions src/MeadowLandMaker/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.4.0")]
[assembly: AssemblyFileVersion("1.0.4.0")]
[assembly: AssemblyVersion("1.0.5.0")]
[assembly: AssemblyFileVersion("1.0.5.0")]

0 comments on commit 67d07ae

Please sign in to comment.