diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index dc1b821369..fc9dbad8a7 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -569,6 +569,8 @@ void GMainWindow::ConnectMenuEvents() { }); // Help + connect(ui.action_Open_Citra_Folder, &QAction::triggered, this, + &GMainWindow::OnOpenCitraFolder); connect(ui.action_FAQ, &QAction::triggered, []() { QDesktopServices::openUrl(QUrl("https://citra-emu.org/wiki/faq/")); }); connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnMenuAboutCitra); @@ -1330,6 +1332,11 @@ void GMainWindow::OnRemoveAmiibo() { } } +void GMainWindow::OnOpenCitraFolder() { + QDesktopServices::openUrl(QUrl::fromLocalFile( + QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::UserDir)))); +} + void GMainWindow::OnToggleFilterBar() { game_list->setFilterVisible(ui.action_Show_Filter_Bar->isChecked()); if (ui.action_Show_Filter_Bar->isChecked()) { diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h index 684a9e332a..71498f060b 100644 --- a/src/citra_qt/main.h +++ b/src/citra_qt/main.h @@ -168,6 +168,7 @@ private slots: void OnConfigure(); void OnLoadAmiibo(); void OnRemoveAmiibo(); + void OnOpenCitraFolder(); void OnToggleFilterBar(); void OnDisplayTitleBars(bool); void ToggleFullscreen(); diff --git a/src/citra_qt/main.ui b/src/citra_qt/main.ui index 77ac7e3ac9..4283579f19 100644 --- a/src/citra_qt/main.ui +++ b/src/citra_qt/main.ui @@ -147,6 +147,8 @@ &Help + + @@ -440,6 +442,11 @@ Remove + + + Open Citra Folder + +