From 8c49dfd3fa7f955df00f9e4552fa0087d20c8240 Mon Sep 17 00:00:00 2001 From: rabix Date: Mon, 30 Sep 2024 17:21:16 +0800 Subject: [PATCH] version --- RedPandaIDE/mainwindow.cpp | 13 ++++++++++--- version.inc | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index e5dd2a69..9685dd06 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -1105,8 +1105,8 @@ void MainWindow::applyUISettings() ui->actionProject->setChecked(settings.showProject()); showHideInfosTab(ui->tabProject,settings.showProject()); - // ui->actionWatch->setChecked(settings.showWatch()); - // showHideInfosTab(ui->tabWatch,settings.showWatch()); + ui->actionWatch->setChecked(false); + showHideInfosTab(ui->tabWatch,settings.showWatch()); ui->actionStructure->setChecked(settings.showStructure()); showHideInfosTab(ui->tabStructure,settings.showStructure()); ui->actionFiles->setChecked(settings.showFiles()); @@ -7392,6 +7392,13 @@ PSymbolUsageManager &MainWindow::symbolUsageManager() 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); if (idx>=0) { if (!show) { @@ -7402,7 +7409,7 @@ void MainWindow::showHideInfosTab(QWidget *widget, bool show) } ui->tabExplorer->removeTab(idx); - ui->tabWatch->setVisible(false); + ui->tabWatch->setVisible(false); } } else { if (show && mTabInfosData.contains(widget)) { diff --git a/version.inc b/version.inc index f35ef0f1..d33f04b0 100644 --- a/version.inc +++ b/version.inc @@ -1,2 +1,2 @@ -APP_VERSION="3.2" +APP_VERSION="1.0" APP_VERSION_SUFFIX="alpha"