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) {
|
void NowPlayingWidget::UpdateHeight(AlbumCoverLoader* loader) {
|
||||||
|
if (!loader) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (mode_) {
|
switch (mode_) {
|
||||||
case SmallSongDetails:
|
case SmallSongDetails:
|
||||||
cover_height_ = small_ideal_height_;
|
cover_height_ = small_ideal_height_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user