소스 검색

UI: Hide script tabs if no python settings

Clayton Groeneveld 5 년 전
부모
커밋
e9d6847fb6
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      UI/frontend-plugins/frontend-tools/forms/scripts.ui
  2. 1 0
      UI/frontend-plugins/frontend-tools/scripts.cpp

+ 3 - 0
UI/frontend-plugins/frontend-tools/forms/scripts.ui

@@ -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>

+ 1 - 0
UI/frontend-plugins/frontend-tools/scripts.cpp

@@ -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;