Hide warning label in backend settings when not shown.
This commit is contained in:
parent
fc66e2e2c7
commit
980d8a65a1
|
@ -437,6 +437,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);
|
||||
|
@ -450,6 +453,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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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