From f2eb4c138c5e2b4ddbf7d5de250f81ad15a50623 Mon Sep 17 00:00:00 2001 From: eater <=@eater.me> Date: Sat, 19 Dec 2020 22:53:48 +0100 Subject: [PATCH] fix: when window title update is disabled, quick return --- src/musikcube/app/layout/MainLayout.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/musikcube/app/layout/MainLayout.cpp b/src/musikcube/app/layout/MainLayout.cpp index b2bd6d785..e6c2f71c1 100755 --- a/src/musikcube/app/layout/MainLayout.cpp +++ b/src/musikcube/app/layout/MainLayout.cpp @@ -332,7 +332,11 @@ void MainLayout::OnIndexerFinished(int count) { } void MainLayout::OnTrackChanged(size_t index, musik::core::TrackPtr track) { - if (prefs->GetBool(cube::prefs::keys::DisableWindowTitleUpdates, false) || !track) { + if (prefs->GetBool(cube::prefs::keys::DisableWindowTitleUpdates, false)) { + return; + } + + if (!track) { App::Instance().SetTitle("musikcube"); } else { @@ -353,4 +357,4 @@ void MainLayout::RunUpdateCheck() { UpdateCheck::ShowUpgradeAvailableOverlay(version, url); } }); -} \ No newline at end of file +}