From 5d2150c67ce7a1f2823ef36987cca62691dbdd42 Mon Sep 17 00:00:00 2001 From: Reg Tiangha Date: Wed, 15 May 2024 03:16:57 -0600 Subject: [PATCH] citra_qt: Add Open Log Folder option to Help menu (#121) --- src/citra_qt/main.cpp | 4 ++++ src/citra_qt/main.ui | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index efe2bc05b..16a41ee85 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -941,6 +941,10 @@ void GMainWindow::ConnectMenuEvents() { // Help connect_menu(ui->action_Open_Citra_Folder, &GMainWindow::OnOpenCitraFolder); + connect_menu(ui->action_Open_Log_Folder, []() { + QString path = QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::LogDir)); + QDesktopServices::openUrl(QUrl::fromLocalFile(path)); + }); connect_menu(ui->action_FAQ, []() { QDesktopServices::openUrl(QUrl(QStringLiteral("https://citra-emu.org/wiki/faq/"))); }); diff --git a/src/citra_qt/main.ui b/src/citra_qt/main.ui index 552f60866..633265fcd 100644 --- a/src/citra_qt/main.ui +++ b/src/citra_qt/main.ui @@ -203,6 +203,7 @@ + @@ -479,6 +480,14 @@ Fullscreen + + + Open Log Folder + + + Opens the Citra Log folder + + Modify Citra Install