tastudio: try to be a bit smarter with SelectedIndexChanged
forces SetSplicer() calls, but only at InputRoll's OnMouseDown, the rest is handled by tastudio
This commit is contained in:
parent
b7ed072c4c
commit
17faf42b6e
|
@ -1152,19 +1152,14 @@ namespace BizHawk.Client.EmuHawk
|
|||
var hadIndex = SelectedItems.Any();
|
||||
SelectedItems.Clear();
|
||||
SelectCell(CurrentCell);
|
||||
|
||||
// In this case the SelectCell did not invoke the change event since there was nothing to select
|
||||
// But we went from selected to unselected, that is a change, so catch it here
|
||||
if (hadIndex && CurrentCell.RowIndex.HasValue && CurrentCell.RowIndex > RowCount)
|
||||
{
|
||||
if (SelectedIndexChanged != null)
|
||||
{
|
||||
SelectedIndexChanged(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Refresh();
|
||||
|
||||
if (SelectedIndexChanged != null)
|
||||
{
|
||||
SelectedIndexChanged(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1679,11 +1674,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
SelectedItems.Add(CurrentCell);
|
||||
}
|
||||
}
|
||||
|
||||
if (SelectedIndexChanged != null)
|
||||
{
|
||||
SelectedIndexChanged(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1251,6 +1251,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.TasView.TabIndex = 1;
|
||||
this.TasView.ColumnClick += new BizHawk.Client.EmuHawk.InputRoll.ColumnClickEventHandler(this.TasView_ColumnClick);
|
||||
this.TasView.ColumnRightClick += new BizHawk.Client.EmuHawk.InputRoll.ColumnClickEventHandler(this.TasView_ColumnRightClick);
|
||||
this.TasView.SelectedIndexChanged += new System.EventHandler(this.TasView_SelectedIndexChanged);
|
||||
this.TasView.RightMouseScrolled += new BizHawk.Client.EmuHawk.InputRoll.RightMouseScrollEventHandler(this.TasView_MouseWheel);
|
||||
this.TasView.ColumnReordered += new BizHawk.Client.EmuHawk.InputRoll.ColumnReorderedEventHandler(this.TasView_ColumnReordered);
|
||||
this.TasView.CellDropped += new BizHawk.Client.EmuHawk.InputRoll.CellDroppedEvent(this.TasView_CellDropped);
|
||||
|
|
Loading…
Reference in New Issue