Merge pull request #2947 from cg2121/script-tabs

UI: Hide script tabs if no python settings
master
Jim 2020-05-18 13:04:54 -07:00 committed by GitHub
commit efa9ee0f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;