TAStudio - implement Restore Defaults menu item (for the features implemented so far at least). Make dialog TopMost = true by default
This commit is contained in:
parent
5fee952c3a
commit
518e53e361
|
@ -476,7 +476,7 @@ namespace BizHawk.Client.Common
|
|||
// TAStudio Dialog
|
||||
public bool TAStudioSaveWindowPosition = true;
|
||||
public bool AutoloadTAStudio = false;
|
||||
public bool TAStudioTopMost = false;
|
||||
public bool TAStudioTopMost = true;
|
||||
public int TASWndx = -1;
|
||||
public int TASWndy = -1;
|
||||
public int TASWidth = -1;
|
||||
|
|
|
@ -615,10 +615,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
// RestoreDefaultSettingsMenuItem
|
||||
//
|
||||
this.RestoreDefaultSettingsMenuItem.Enabled = false;
|
||||
this.RestoreDefaultSettingsMenuItem.Name = "RestoreDefaultSettingsMenuItem";
|
||||
this.RestoreDefaultSettingsMenuItem.Size = new System.Drawing.Size(199, 22);
|
||||
this.RestoreDefaultSettingsMenuItem.Text = "Restore Default Settings";
|
||||
this.RestoreDefaultSettingsMenuItem.Click += new System.EventHandler(this.RestoreDefaultSettingsMenuItem_Click);
|
||||
//
|
||||
// HelpSubMenu
|
||||
//
|
||||
|
|
|
@ -366,6 +366,14 @@ namespace BizHawk.Client.EmuHawk
|
|||
Global.Config.TAStudioTopMost ^= true;
|
||||
}
|
||||
|
||||
private void RestoreDefaultSettingsMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Size = new Size(_defaultWidth, _defaultHeight);
|
||||
|
||||
Global.Config.TAStudioSaveWindowPosition = true;
|
||||
Global.Config.TAStudioTopMost = true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region TASView Events
|
||||
|
|
Loading…
Reference in New Issue