fix: when window title update is disabled, quick return

This commit is contained in:
eater 2020-12-19 22:53:48 +01:00
parent 44e66937c6
commit f2eb4c138c
No known key found for this signature in database
GPG Key ID: AD2560A0F84F0759

View File

@ -332,7 +332,11 @@ void MainLayout::OnIndexerFinished(int count) {
} }
void MainLayout::OnTrackChanged(size_t index, musik::core::TrackPtr track) { 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"); App::Instance().SetTitle("musikcube");
} }
else { else {