qt: Add help option to open yuzu folder
Opens a new file manager window at the UserDir.
This commit is contained in:
		| @@ -454,6 +454,7 @@ void GMainWindow::ConnectMenuEvents() { | |||||||
|     connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen); |     connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen); | ||||||
|  |  | ||||||
|     // Help |     // Help | ||||||
|  |     connect(ui.action_Open_yuzu_Folder, &QAction::triggered, this, &GMainWindow::OnOpenYuzuFolder); | ||||||
|     connect(ui.action_Rederive, &QAction::triggered, this, |     connect(ui.action_Rederive, &QAction::triggered, this, | ||||||
|             std::bind(&GMainWindow::OnReinitializeKeys, this, ReinitializeKeyBehavior::Warning)); |             std::bind(&GMainWindow::OnReinitializeKeys, this, ReinitializeKeyBehavior::Warning)); | ||||||
|     connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnAbout); |     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() { | void GMainWindow::OnAbout() { | ||||||
|     AboutDialog aboutDialog(this); |     AboutDialog aboutDialog(this); | ||||||
|     aboutDialog.exec(); |     aboutDialog.exec(); | ||||||
|   | |||||||
| @@ -167,6 +167,7 @@ private slots: | |||||||
|     void OnMenuRecentFile(); |     void OnMenuRecentFile(); | ||||||
|     void OnConfigure(); |     void OnConfigure(); | ||||||
|     void OnLoadAmiibo(); |     void OnLoadAmiibo(); | ||||||
|  |     void OnOpenYuzuFolder(); | ||||||
|     void OnAbout(); |     void OnAbout(); | ||||||
|     void OnToggleFilterBar(); |     void OnToggleFilterBar(); | ||||||
|     void OnDisplayTitleBars(bool); |     void OnDisplayTitleBars(bool); | ||||||
|   | |||||||
| @@ -110,6 +110,7 @@ | |||||||
|      <string>&Help</string> |      <string>&Help</string> | ||||||
|     </property> |     </property> | ||||||
|     <addaction name="action_Report_Compatibility"/> |     <addaction name="action_Report_Compatibility"/> | ||||||
|  |     <addaction name="action_Open_yuzu_Folder" /> | ||||||
|     <addaction name="separator"/> |     <addaction name="separator"/> | ||||||
|     <addaction name="action_About"/> |     <addaction name="action_About"/> | ||||||
|    </widget> |    </widget> | ||||||
| @@ -277,6 +278,11 @@ | |||||||
|        <bool>false</bool> |        <bool>false</bool> | ||||||
|      </property> |      </property> | ||||||
|    </action> |    </action> | ||||||
|  |    <action name="action_Open_yuzu_Folder"> | ||||||
|  |      <property name="text"> | ||||||
|  |        <string>Open yuzu Folder</string> | ||||||
|  |      </property> | ||||||
|  |    </action> | ||||||
|   </widget> |   </widget> | ||||||
|  <resources/> |  <resources/> | ||||||
|  <connections/> |  <connections/> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zach Hilman
					Zach Hilman