Changed the Status Bar Profile Icon to use the same logic as the Profile Menu Item. This is done to ensure the user has selected a profile when they click on the Profile Icon before we hide it.
This commit is contained in:
parent
fe9dade094
commit
1cde5584b1
|
@ -2236,10 +2236,23 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void ProfileFirstBootLabel_Click(object sender, EventArgs e)
|
||||
{
|
||||
var profileForm = new ProfileConfig();
|
||||
profileForm.ShowDialog();
|
||||
Global.Config.FirstBoot = false;
|
||||
ProfileFirstBootLabel.Visible = false;
|
||||
//We should make sure the user actually picked a Profile.
|
||||
if (new ProfileConfig().ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
GlobalWin.OSD.AddMessage("Profile settings saved");
|
||||
//We hide the FirstBoot items since the user setup a Profile
|
||||
//Is it a bad thing to do this constantly?
|
||||
Global.Config.FirstBoot = false;
|
||||
ProfileFirstBootLabel.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
GlobalWin.OSD.AddMessage("Profile config aborted");
|
||||
}
|
||||
//var profileForm = new ProfileConfig();
|
||||
//profileForm.ShowDialog();
|
||||
//Global.Config.FirstBoot = false;
|
||||
//ProfileFirstBootLabel.Visible = false;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue