mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-01 09:47:39 +00:00
Improve UI
This commit is contained in:
parent
4a9523f9df
commit
7ea1e6dc2a
2 changed files with 7 additions and 1 deletions
|
@ -183,8 +183,13 @@ void EditorCanvas::MouseEvent(wxMouseEvent &event) {
|
|||
void EditorCanvas::SetMoves(HalfMove *moves, HalfMove *current) {
|
||||
CGEditor::status.Moves = moves;
|
||||
CGEditor::status.CurrentMove = current;
|
||||
|
||||
Refresh();
|
||||
// Focus on current move:
|
||||
if(current!=nullptr){
|
||||
Update(); // Wait for preview call to Refresh() to finish (otherwise heisenbugs)
|
||||
CGEditor::FocusOnMove(current);
|
||||
Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
void EditorCanvas::ApplyPreferences(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue