This commit is contained in:
rabix 2024-09-30 17:21:16 +08:00
parent 1205beec8e
commit 8c49dfd3fa
2 changed files with 11 additions and 4 deletions

View File

@ -1105,8 +1105,8 @@ void MainWindow::applyUISettings()
ui->actionProject->setChecked(settings.showProject()); ui->actionProject->setChecked(settings.showProject());
showHideInfosTab(ui->tabProject,settings.showProject()); showHideInfosTab(ui->tabProject,settings.showProject());
// ui->actionWatch->setChecked(settings.showWatch()); ui->actionWatch->setChecked(false);
// showHideInfosTab(ui->tabWatch,settings.showWatch()); showHideInfosTab(ui->tabWatch,settings.showWatch());
ui->actionStructure->setChecked(settings.showStructure()); ui->actionStructure->setChecked(settings.showStructure());
showHideInfosTab(ui->tabStructure,settings.showStructure()); showHideInfosTab(ui->tabStructure,settings.showStructure());
ui->actionFiles->setChecked(settings.showFiles()); ui->actionFiles->setChecked(settings.showFiles());
@ -7392,6 +7392,13 @@ PSymbolUsageManager &MainWindow::symbolUsageManager()
void MainWindow::showHideInfosTab(QWidget *widget, bool show) void MainWindow::showHideInfosTab(QWidget *widget, bool show)
{ {
if (widget == ui->tabWatch) {
int idx = findTabIndex(ui->tabExplorer,widget);
if (idx >= 0) {
ui->tabExplorer->removeTab(idx);
}
return;
}
int idx = findTabIndex(ui->tabExplorer,widget); int idx = findTabIndex(ui->tabExplorer,widget);
if (idx>=0) { if (idx>=0) {
if (!show) { if (!show) {
@ -7402,7 +7409,7 @@ void MainWindow::showHideInfosTab(QWidget *widget, bool show)
} }
ui->tabExplorer->removeTab(idx); ui->tabExplorer->removeTab(idx);
ui->tabWatch->setVisible(false); ui->tabWatch->setVisible(false);
} }
} else { } else {
if (show && mTabInfosData.contains(widget)) { if (show && mTabInfosData.contains(widget)) {

View File

@ -1,2 +1,2 @@
APP_VERSION="3.2" APP_VERSION="1.0"
APP_VERSION_SUFFIX="alpha" APP_VERSION_SUFFIX="alpha"