Disable folder action instead of hiding it and add additional information in the tooltip.

Signed-off-by: QazCetelic <qaz.cetelic@protonmail.com>
This commit is contained in:
QazCetelic 2024-09-14 22:04:18 +02:00
parent 312009513d
commit 1c6bd74ed8
2 changed files with 3 additions and 2 deletions

View File

@ -234,7 +234,8 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWi
ui->mainToolBar->addAction(ui->actionCloseWindow);
}
ui->actionViewJavaFolder->setVisible(BuildConfig.JAVA_DOWNLOADER_ENABLED);
ui->actionViewJavaFolder->setEnabled(BuildConfig.JAVA_DOWNLOADER_ENABLED);
}
// add the toolbar toggles to the view menu

View File

@ -798,7 +798,7 @@
<string>Java</string>
</property>
<property name="toolTip">
<string>Open the java folder in a file browser.</string>
<string>Open the java folder in a file browser. Only available if the built-in Java downloader is used.</string>
</property>
</action>
</widget>