Tastudio - fix loading

This commit is contained in:
adelikat 2015-01-02 17:28:51 +00:00
parent 7923f4d131
commit a075435ce8
2 changed files with 15 additions and 8 deletions

View File

@ -62,16 +62,23 @@ namespace BizHawk.Client.EmuHawk
}
}
public PlaybackBox()
public PlaybackBox(TAStudio tastudio)
{
Tastudio = tastudio;
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
_programmaticallyChangingValue = true;
if (Global.Config != null) // A check needed for the designer
{
TurboSeekCheckbox.Checked = Global.Config.TurboSeek;
AutoRestoreCheckbox.Checked = Tastudio.Settings.AutoRestoreLastPosition;
FollowCursorCheckbox.Checked = Tastudio.Settings.FollowCursor;
}
TurboSeekCheckbox.Checked = Global.Config.TurboSeek;
AutoRestoreCheckbox.Checked = Tastudio.Settings.AutoRestoreLastPosition;
FollowCursorCheckbox.Checked = Tastudio.Settings.FollowCursor;
_programmaticallyChangingValue = false;
}

View File

@ -105,7 +105,7 @@ namespace BizHawk.Client.EmuHawk
this.TasStatusStrip = new StatusStripEx();
this.MessageStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.SplicerStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.TasPlaybackBox = new BizHawk.Client.EmuHawk.PlaybackBox();
this.TasPlaybackBox = new BizHawk.Client.EmuHawk.PlaybackBox(this);
this.MarkerControl = new BizHawk.Client.EmuHawk.MarkerControl();
this.MarkerContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.EditMarkerContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();