Add background_initialized_
This commit is contained in:
@@ -109,7 +109,8 @@ PlaylistView::PlaylistView(QWidget *parent)
|
||||
upgrading_from_qheaderview_(false),
|
||||
read_only_settings_(true),
|
||||
upgrading_from_version_(-1),
|
||||
background_image_type_(Invalid),
|
||||
background_initialized_(false),
|
||||
background_image_type_(Default),
|
||||
blur_radius_(kDefaultBlurRadius),
|
||||
opacity_level_(kDefaultOpacityLevel),
|
||||
previous_background_image_opacity_(0.0),
|
||||
@@ -983,7 +984,8 @@ void PlaylistView::ReloadSettings() {
|
||||
// animation to start again. This also avoid to do useless
|
||||
// "force_background_redraw".
|
||||
|
||||
if (background_image_filename != background_image_filename_ || background_type != background_image_type_ || blur_radius_ != blur_radius || opacity_level_ != opacity_level) {
|
||||
if (!background_initialized_ || background_image_filename != background_image_filename_ || background_type != background_image_type_ || blur_radius_ != blur_radius || opacity_level_ != opacity_level) {
|
||||
background_initialized_ = true;
|
||||
// Store background properties
|
||||
background_image_type_ = background_type;
|
||||
background_image_filename_ = background_image_filename;
|
||||
|
||||
Reference in New Issue
Block a user