From 852168121f0d56e8e51e5522e4f21a37b1a7ddd4 Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Wed, 26 Feb 2025 15:32:56 -0300 Subject: [PATCH] fix sdl/qt --- src/core/libraries/np_trophy/trophy_ui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/libraries/np_trophy/trophy_ui.cpp b/src/core/libraries/np_trophy/trophy_ui.cpp index 7ba58cbfa..2564cbf5d 100644 --- a/src/core/libraries/np_trophy/trophy_ui.cpp +++ b/src/core/libraries/np_trophy/trophy_ui.cpp @@ -241,8 +241,10 @@ void AddTrophyToQueue(const std::filesystem::path& trophyIconPath, const std::st trophy_queue.push(new_trophy); if (!current_trophy_ui.has_value()) { - // Resetting the animation for the next trophy +#ifdef ENABLE_QT_GUI BackgroundMusicPlayer::getInstance().stopMusic(); +#endif + // Resetting the animation for the next trophy elapsed_time = 0.0f; // Resetting animation time fade_opacity = 0.0f; // Starts invisible start_pos = ImVec2(1280.0f, 50.0f); // Starts off screen, right