diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-21 13:00:13 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-21 13:00:13 -0400 |
commit | 829bffa5912f1b6da4ebba580450cfba6d320295 (patch) | |
tree | d94d09b219661913198eca72510a31f07eb09c13 /src/tracker_frame.cpp | |
parent | 900355a291cd2c2452e909407a57d3e81d7ad85e (diff) | |
download | lingo-ap-tracker-829bffa5912f1b6da4ebba580450cfba6d320295.tar.gz lingo-ap-tracker-829bffa5912f1b6da4ebba580450cfba6d320295.tar.bz2 lingo-ap-tracker-829bffa5912f1b6da4ebba580450cfba6d320295.zip |
Use sync panels for achievement state
Diffstat (limited to 'src/tracker_frame.cpp')
-rw-r--r-- | src/tracker_frame.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tracker_frame.cpp b/src/tracker_frame.cpp index c0b070b..e8d7ef6 100644 --- a/src/tracker_frame.cpp +++ b/src/tracker_frame.cpp | |||
@@ -341,7 +341,11 @@ void TrackerFrame::OnStateChanged(StateChangedEvent &event) { | |||
341 | } | 341 | } |
342 | } | 342 | } |
343 | 343 | ||
344 | if (state.achievements) { | 344 | if (std::any_of(state.panels.begin(), state.panels.end(), |
345 | [](int solve_index) { | ||
346 | return GD_GetPanel(GD_GetPanelBySolveIndex(solve_index)) | ||
347 | .achievement; | ||
348 | })) { | ||
345 | achievements_pane_->UpdateIndicators(); | 349 | achievements_pane_->UpdateIndicators(); |
346 | } | 350 | } |
347 | 351 | ||