aboutsummaryrefslogtreecommitdiff
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
parent20df3fce6bf558aa5a1a144ed63f092462fcbdb4 (diff)
Upgrade CGEditorHEADmaster
m---------libs/cgeditor0
-rw-r--r--src/game_tab/right_panel/editor/EditorCanvas.cpp4
2 files changed, 1 insertions, 3 deletions
diff --git a/libs/cgeditor b/libs/cgeditor
-Subproject 5ceb3eafc405859f5e588118158cb9e9dbd0048
+Subproject 7d753ae2d82592e09e04e4ecf11df976a2d187f
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(){