aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/right_panel/editor/EditorCanvas.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-06-07 19:24:43 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-06-07 19:24:43 +0200
commitf7dda9c006e0f68277ae96d8f37e9ff14a271cd4 (patch)
tree809a8486b8c26707fd961340638525fb64c2ae99 /src/game_tab/right_panel/editor/EditorCanvas.cpp
parent20df3fce6bf558aa5a1a144ed63f092462fcbdb4 (diff)
Upgrade CGEditorHEADmaster
Diffstat (limited to 'src/game_tab/right_panel/editor/EditorCanvas.cpp')
-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(){