1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-28 09:10:58 +01:00

Move setVisible() to prevent popup.

This commit is contained in:
Jonas Kvinge 2018-04-07 12:12:58 +02:00
parent 917b9c39b8
commit e1c33f093f

View File

@ -206,9 +206,10 @@ void StatusView::NoSongWidget() {
label_stopped_top_->setFixedWidth(300); label_stopped_top_->setFixedWidth(300);
label_stopped_top_->setAlignment(Qt::AlignTop|Qt::AlignLeft); label_stopped_top_->setAlignment(Qt::AlignTop|Qt::AlignLeft);
widget_stopped_->setVisible(true);
widget_stopped_->setLayout(layout_stopped_); widget_stopped_->setLayout(layout_stopped_);
container_layout_->insertWidget(0, widget_stopped_); container_layout_->insertWidget(0, widget_stopped_);
widget_stopped_->setVisible(true);
widgetstate_ = Stopped; widgetstate_ = Stopped;
} }
@ -252,7 +253,6 @@ void StatusView::SongWidget() {
label_playing_album_->setStyleSheet("background-color: transparent;"); label_playing_album_->setStyleSheet("background-color: transparent;");
label_playing_album_->installEventFilter(this); label_playing_album_->installEventFilter(this);
widget_playing_->setVisible(true);
widget_playing_->setLayout(layout_playing_); widget_playing_->setLayout(layout_playing_);
container_layout_->insertWidget(0, widget_playing_); container_layout_->insertWidget(0, widget_playing_);
@ -262,6 +262,8 @@ void StatusView::SongWidget() {
label_playing_text_->setStyleSheet(QString::fromLatin1(stylesheet.readAll())); label_playing_text_->setStyleSheet(QString::fromLatin1(stylesheet.readAll()));
} }
widget_playing_->setVisible(true);
widgetstate_ = Playing; widgetstate_ = Playing;
} }