Tastudio - fix loading
This commit is contained in:
parent
7923f4d131
commit
a075435ce8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue