aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/right_panel
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/right_panel')
-rw-r--r--src/game_tab/right_panel/editor/EditorCanvas.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game_tab/right_panel/editor/EditorCanvas.cpp b/src/game_tab/right_panel/editor/EditorCanvas.cpp
index 3120177..a651ba5 100644
--- a/src/game_tab/right_panel/editor/EditorCanvas.cpp
+++ b/src/game_tab/right_panel/editor/EditorCanvas.cpp
@@ -183,13 +183,11 @@ 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();
}
+ Refresh();
}
void EditorCanvas::ApplyPreferences(){