diff options
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 | ||