mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
fix: when window title update is disabled, quick return
This commit is contained in:
parent
44e66937c6
commit
f2eb4c138c
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user