Skip to content

Commit

Permalink
Version 1.2 (minor feature update)
Browse files Browse the repository at this point in the history
Added the tray icon from issue #12
Added the option to start a VM after creating it from issue #22
Added the ability to start the selected VM by pressing the ENTER key from issue #24
Updated README.md
  • Loading branch information
daviunic committed Nov 20, 2018
1 parent 3efb486 commit f07fcb6
Show file tree
Hide file tree
Showing 9 changed files with 6,901 additions and 102 deletions.
4 changes: 2 additions & 2 deletions 86BoxManager/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.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
22 changes: 18 additions & 4 deletions 86BoxManager/dlgAddVM.Designer.cs

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

2 changes: 1 addition & 1 deletion 86BoxManager/dlgAddVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private void btnAdd_Click(object sender, EventArgs e)
}
else
{
main.VMAdd(txtName.Text, txtDescription.Text, cbxOpenCFG.Checked);
main.VMAdd(txtName.Text, txtDescription.Text, cbxOpenCFG.Checked, cbxStartVM.Checked);
Close();
}
}
Expand Down
52 changes: 40 additions & 12 deletions 86BoxManager/dlgSettings.Designer.cs

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

20 changes: 20 additions & 0 deletions 86BoxManager/dlgSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ private void SaveSettings()
regkey.SetValue("CFGdir", txtCFGdir.Text, RegistryValueKind.String);
regkey.SetValue("MinimizeOnVMStart", cbxMinimize.Checked, RegistryValueKind.DWord);
regkey.SetValue("ShowConsole", cbxShowConsole.Checked, RegistryValueKind.DWord);
regkey.SetValue("MinimizeToTray", cbxMinimizeTray.Checked, RegistryValueKind.DWord);
regkey.SetValue("CloseToTray", cbxCloseTray.Checked, RegistryValueKind.DWord);
regkey.Close();
settingsChanged = false;
}
Expand All @@ -107,13 +109,17 @@ private void LoadSettings()
txtEXEdir.Text = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + @"\86Box";
cbxMinimize.Checked = false;
cbxShowConsole.Checked = true;
cbxMinimizeTray.Checked = false;
cbxCloseTray.Checked = false;
}
else
{
txtEXEdir.Text = regkey.GetValue("EXEdir").ToString();
txtCFGdir.Text = regkey.GetValue("CFGdir").ToString();
cbxMinimize.Checked = Convert.ToBoolean(regkey.GetValue("MinimizeOnVMStart"));
cbxShowConsole.Checked = Convert.ToBoolean(regkey.GetValue("ShowConsole"));
cbxMinimizeTray.Checked = Convert.ToBoolean(regkey.GetValue("MinimizeToTray"));
cbxCloseTray.Checked = Convert.ToBoolean(regkey.GetValue("CloseToTray"));

//These two lines are needed because storing the values into the textboxes (above code) triggers textchanged event
settingsChanged = false;
Expand Down Expand Up @@ -194,6 +200,20 @@ private void ResetSettings()
txtEXEdir.Text = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + @"\86Box";
cbxMinimize.Checked = false;
cbxShowConsole.Checked = true;
cbxMinimizeTray.Checked = false;
cbxCloseTray.Checked = false;
}

private void cbxCloseTray_CheckedChanged(object sender, EventArgs e)
{
settingsChanged = true;
btnApply.Enabled = true;
}

private void cbxMinimizeTray_CheckedChanged(object sender, EventArgs e)
{
settingsChanged = true;
btnApply.Enabled = true;
}
}
}
Loading

0 comments on commit f07fcb6

Please sign in to comment.