UI: Hide script tabs if no python settings

This commit is contained in:
Clayton Groeneveld 2020-05-18 02:50:28 -05:00
parent 5ba2d59b3c
commit e9d6847fb6
2 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,9 @@
<property name="currentIndex">
<number>0</number>
</property>
<property name="tabBarAutoHide">
<bool>true</bool>
</property>
<widget class="QWidget" name="scriptsTab">
<attribute name="title">
<string>Scripts</string>

View File

@ -192,6 +192,7 @@ ScriptsTool::ScriptsTool() : QWidget(nullptr), ui(new Ui_ScriptsTool)
#else
delete ui->pythonSettingsTab;
ui->pythonSettingsTab = nullptr;
ui->tabWidget->setStyleSheet("QTabWidget::pane {border: 0;}");
#endif
delete propertiesView;