fix: @timoreo22

Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
Ryan Cao 2022-11-05 22:31:07 +08:00
parent f1d3481a29
commit 3df31579a1
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -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()
{ {

View File

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