diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-01 22:05:44 -0400 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-03 12:48:34 -0400 |
commit | 97187b7ef6eb842c0f8021ac500b5f7f029a5ae9 (patch) | |
tree | 2b3430beae935c99273510c0578bd4496575bb4c /src/yuzu/main.cpp | |
parent | 6664d7b2c5dcff9846e1a77ffa729a53e6261308 (diff) |
qt: Add help option to open yuzu folder
Opens a new file manager window at the UserDir.
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index c5a56cbfda..114b395463 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -454,6 +454,7 @@ void GMainWindow::ConnectMenuEvents() { connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen); // Help + connect(ui.action_Open_yuzu_Folder, &QAction::triggered, this, &GMainWindow::OnOpenYuzuFolder); connect(ui.action_Rederive, &QAction::triggered, this, std::bind(&GMainWindow::OnReinitializeKeys, this, ReinitializeKeyBehavior::Warning)); connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnAbout); @@ -1374,6 +1375,11 @@ void GMainWindow::OnLoadAmiibo() { } } +void GMainWindow::OnOpenYuzuFolder() { + QDesktopServices::openUrl(QUrl::fromLocalFile( + QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::UserDir)))); +} + void GMainWindow::OnAbout() { AboutDialog aboutDialog(this); aboutDialog.exec(); |