Hide warning label in backend settings when not shown.
This commit is contained in:
parent
fc66e2e2c7
commit
980d8a65a1
|
@ -438,6 +438,9 @@ void BackendSettingsPage::ShowWarning(QString text) {
|
|||
ui_->label_warn_text->setStyleSheet("QLabel { color: red; }");
|
||||
ui_->label_warn_text->setText("<b>" + text + "</b>");
|
||||
|
||||
ui_->label_warn_logo->setVisible(true);
|
||||
ui_->label_warn_text->setVisible(true);
|
||||
|
||||
ui_->label_warn_logo->setEnabled(true);
|
||||
ui_->label_warn_text->setEnabled(true);
|
||||
|
||||
|
@ -451,6 +454,9 @@ void BackendSettingsPage::ResetWarning() {
|
|||
ui_->label_warn_logo->setEnabled(false);
|
||||
ui_->label_warn_text->setEnabled(false);
|
||||
|
||||
ui_->label_warn_logo->setVisible(false);
|
||||
ui_->label_warn_text->setVisible(false);
|
||||
|
||||
}
|
||||
|
||||
void BackendSettingsPage::XineWarning() {
|
||||
|
|
|
@ -367,12 +367,6 @@
|
|||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>114</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
Loading…
Reference in New Issue