From a28e4be5a31c1cd3c3c3293b60b59f1f56db5052 Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Tue, 15 Feb 2022 23:44:14 +0100 Subject: [PATCH] Bugfix play selection --- UserInterfaceManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UserInterfaceManager.cpp b/UserInterfaceManager.cpp index efd4b37..8ba72e3 100644 --- a/UserInterfaceManager.cpp +++ b/UserInterfaceManager.cpp @@ -2155,6 +2155,9 @@ void SourceController::Update() SourceList selectedsources; + if (Settings::application.widget.media_player == false) + selection_.clear(); + // get new selection or validate previous list if selection was not updated selectedsources = Mixer::manager().validate(selection_); if (selectedsources.empty() && !Mixer::selection().empty()) @@ -2225,7 +2228,6 @@ void SourceController::Render() { if (ImGuiToolkit::IconButton(4,16)){ Settings::application.widget.media_player = false; - selection_.clear(); } if (ImGui::BeginMenu(IMGUI_TITLE_MEDIAPLAYER)) {