mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 20:40:43 +01:00
Fix a race condition on startup that would cause a crash if the album cover loader thread took too long to start (happened a lot on Windows)
This commit is contained in:
parent
c6c4902d3f
commit
8b1cbc33c0
@ -164,6 +164,10 @@ void NowPlayingWidget::CoverLoaderInitialised() {
|
||||
}
|
||||
|
||||
void NowPlayingWidget::UpdateHeight(AlbumCoverLoader* loader) {
|
||||
if (!loader) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (mode_) {
|
||||
case SmallSongDetails:
|
||||
cover_height_ = small_ideal_height_;
|
||||
|
Loading…
Reference in New Issue
Block a user