TAStudio - fix typo in Restart() that was causing the listview to get wrecked
This commit is contained in:
parent
be4ce1dce7
commit
a731504e5b
|
@ -38,6 +38,7 @@ namespace BizHawk.MultiClient
|
|||
UserMovie.StartPlayback();
|
||||
}
|
||||
SetMainformMovieInfo();
|
||||
TAStudio1.Restart();
|
||||
}
|
||||
|
||||
public void SetMainformMovieInfo()
|
||||
|
|
|
@ -121,6 +121,16 @@ namespace BizHawk.MultiClient
|
|||
TASView.ensureVisible(Global.Emulator.Frame);
|
||||
}
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
if (!this.IsHandleCreated || this.IsDisposed) return;
|
||||
TASView.Items.Clear();
|
||||
ControllerBox.Controls.Clear();
|
||||
ClearPads();
|
||||
Pads.Clear();
|
||||
LoadTAStudio();
|
||||
}
|
||||
|
||||
public void LoadTAStudio()
|
||||
{
|
||||
//TODO: don't engage until new/open project
|
||||
|
@ -233,16 +243,6 @@ namespace BizHawk.MultiClient
|
|||
Pads[x].Clear();
|
||||
}
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
if (!this.IsHandleCreated || this.IsDisposed) return;
|
||||
TASView.Clear();
|
||||
ControllerBox.Controls.Clear();
|
||||
ClearPads();
|
||||
Pads.Clear();
|
||||
LoadTAStudio();
|
||||
}
|
||||
|
||||
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
|
|
Loading…
Reference in New Issue