qt: Add help option to open yuzu folder
This commit is contained in:
parent
a59920ed35
commit
31c394e9b5
@ -569,6 +569,8 @@ void GMainWindow::ConnectMenuEvents() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Help
|
// Help
|
||||||
|
connect(ui.action_Open_Citra_Folder, &QAction::triggered, this,
|
||||||
|
&GMainWindow::OnOpenCitraFolder);
|
||||||
connect(ui.action_FAQ, &QAction::triggered,
|
connect(ui.action_FAQ, &QAction::triggered,
|
||||||
[]() { QDesktopServices::openUrl(QUrl("https://citra-emu.org/wiki/faq/")); });
|
[]() { QDesktopServices::openUrl(QUrl("https://citra-emu.org/wiki/faq/")); });
|
||||||
connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnMenuAboutCitra);
|
connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnMenuAboutCitra);
|
||||||
@ -1330,6 +1332,11 @@ void GMainWindow::OnRemoveAmiibo() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GMainWindow::OnOpenCitraFolder() {
|
||||||
|
QDesktopServices::openUrl(QUrl::fromLocalFile(
|
||||||
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::UserDir))));
|
||||||
|
}
|
||||||
|
|
||||||
void GMainWindow::OnToggleFilterBar() {
|
void GMainWindow::OnToggleFilterBar() {
|
||||||
game_list->setFilterVisible(ui.action_Show_Filter_Bar->isChecked());
|
game_list->setFilterVisible(ui.action_Show_Filter_Bar->isChecked());
|
||||||
if (ui.action_Show_Filter_Bar->isChecked()) {
|
if (ui.action_Show_Filter_Bar->isChecked()) {
|
||||||
|
@ -168,6 +168,7 @@ private slots:
|
|||||||
void OnConfigure();
|
void OnConfigure();
|
||||||
void OnLoadAmiibo();
|
void OnLoadAmiibo();
|
||||||
void OnRemoveAmiibo();
|
void OnRemoveAmiibo();
|
||||||
|
void OnOpenCitraFolder();
|
||||||
void OnToggleFilterBar();
|
void OnToggleFilterBar();
|
||||||
void OnDisplayTitleBars(bool);
|
void OnDisplayTitleBars(bool);
|
||||||
void ToggleFullscreen();
|
void ToggleFullscreen();
|
||||||
|
@ -147,6 +147,8 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>&Help</string>
|
<string>&Help</string>
|
||||||
</property>
|
</property>
|
||||||
|
<addaction name="action_Open_Citra_Folder"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
<addaction name="action_Check_For_Updates"/>
|
<addaction name="action_Check_For_Updates"/>
|
||||||
<addaction name="action_Open_Maintenance_Tool"/>
|
<addaction name="action_Open_Maintenance_Tool"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
@ -440,6 +442,11 @@
|
|||||||
<string>Remove</string>
|
<string>Remove</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="action_Open_Citra_Folder">
|
||||||
|
<property name="text">
|
||||||
|
<string>Open Citra Folder</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
Loading…
Reference in New Issue
Block a user