fix: @timoreo22
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
parent
f1d3481a29
commit
3df31579a1
@ -254,7 +254,9 @@ public:
|
|||||||
QMenu * helpMenu = nullptr;
|
QMenu * helpMenu = nullptr;
|
||||||
TranslatedToolButton helpMenuButton;
|
TranslatedToolButton helpMenuButton;
|
||||||
TranslatedAction actionClearMetadata;
|
TranslatedAction actionClearMetadata;
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
TranslatedAction actionAddToPATH;
|
TranslatedAction actionAddToPATH;
|
||||||
|
#endif
|
||||||
TranslatedAction actionReportBug;
|
TranslatedAction actionReportBug;
|
||||||
TranslatedAction actionDISCORD;
|
TranslatedAction actionDISCORD;
|
||||||
TranslatedAction actionMATRIX;
|
TranslatedAction actionMATRIX;
|
||||||
@ -1919,6 +1921,7 @@ void MainWindow::on_actionClearMetadata_triggered()
|
|||||||
APPLICATION->metacache()->evictAll();
|
APPLICATION->metacache()->evictAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
void MainWindow::on_actionAddToPATH_triggered() {
|
void MainWindow::on_actionAddToPATH_triggered() {
|
||||||
auto binaryPath = APPLICATION->applicationFilePath();
|
auto binaryPath = APPLICATION->applicationFilePath();
|
||||||
|
|
||||||
@ -1931,6 +1934,7 @@ void MainWindow::on_actionAddToPATH_triggered() {
|
|||||||
QMessageBox::critical(this, tr("Failed to add Prism to PATH"), tr("Failed to add Prism to PATH :("));
|
QMessageBox::critical(this, tr("Failed to add Prism to PATH"), tr("Failed to add Prism to PATH :("));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void MainWindow::on_actionOpenWiki_triggered()
|
void MainWindow::on_actionOpenWiki_triggered()
|
||||||
{
|
{
|
||||||
|
@ -128,7 +128,9 @@ private slots:
|
|||||||
|
|
||||||
void on_actionClearMetadata_triggered();
|
void on_actionClearMetadata_triggered();
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
void on_actionAddToPATH_triggered();
|
void on_actionAddToPATH_triggered();
|
||||||
|
#endif
|
||||||
|
|
||||||
void on_actionOpenWiki_triggered();
|
void on_actionOpenWiki_triggered();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user