From 36c4eee49f2c10d6759aac4a9f8d0d7914582018 Mon Sep 17 00:00:00 2001 From: Reg Tiangha Date: Tue, 14 May 2024 16:01:37 -0600 Subject: [PATCH] lime_qt: Add Open Log Folder option to Help menu --- src/lime_qt/main.cpp | 4 ++++ src/lime_qt/main.ui | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/src/lime_qt/main.cpp b/src/lime_qt/main.cpp index f66e213a9..8e254ba08 100644 --- a/src/lime_qt/main.cpp +++ b/src/lime_qt/main.cpp @@ -951,6 +951,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://discord.com/invite/4ZjMpAp3M6"))); }); diff --git a/src/lime_qt/main.ui b/src/lime_qt/main.ui index 70e098f28..cab550cfa 100644 --- a/src/lime_qt/main.ui +++ b/src/lime_qt/main.ui @@ -203,6 +203,7 @@ + @@ -479,6 +480,14 @@ Fullscreen + + + Open Log Folder + + + Opens the Lime3DS Log folder + + Modify Lime3DS Install