summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-01-15 16:17:40 -0600
committerGitHub <noreply@github.com>2026-01-15 16:17:40 -0600
commita88c27d8553e8bf368189ce7450210449d536a71 (patch)
tree37c89edc57c63a52c636e27aba3d3fb7d2a88650 /Source/Core/DolphinQt/MainWindow.cpp
parent4c7cb2622f6e05e13aa94f058c110923733df2c3 (diff)
parent0e348ee159bca57376188d7323ef069886ca1197 (diff)
Merge pull request #14284 from JoshuaVandaele/menubar-folder
MenuBar: Add entries to open the config and cache folders
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 7304905442..4b9308f189 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -530,6 +530,8 @@ void MainWindow::ConnectMenuBar()
connect(m_menu_bar, &MenuBar::EjectDisc, this, &MainWindow::EjectDisc);
connect(m_menu_bar, &MenuBar::ChangeDisc, this, &MainWindow::ChangeDisc);
connect(m_menu_bar, &MenuBar::OpenUserFolder, this, &MainWindow::OpenUserFolder);
+ connect(m_menu_bar, &MenuBar::OpenConfigFolder, this, &MainWindow::OpenConfigFolder);
+ connect(m_menu_bar, &MenuBar::OpenCacheFolder, this, &MainWindow::OpenCacheFolder);
// Emulation
connect(m_menu_bar, &MenuBar::Pause, this, &MainWindow::Pause);
@@ -827,6 +829,22 @@ void MainWindow::OpenUserFolder()
QDesktopServices::openUrl(url);
}
+void MainWindow::OpenConfigFolder()
+{
+ std::string path = File::GetUserPath(D_CONFIG_IDX);
+
+ QUrl url = QUrl::fromLocalFile(QString::fromStdString(path));
+ QDesktopServices::openUrl(url);
+}
+
+void MainWindow::OpenCacheFolder()
+{
+ std::string path = File::GetUserPath(D_CACHE_IDX);
+
+ QUrl url = QUrl::fromLocalFile(QString::fromStdString(path));
+ QDesktopServices::openUrl(url);
+}
+
void MainWindow::Open()
{
QStringList files = PromptFileNames();