mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-17 04:17:15 +01:00
Merge pull request #4419 from FearlessTobi/port-1639
Port yuzu-emu/yuzu#1639: "qt: Add help option to open yuzu folder"
This commit is contained in:
commit
11baf7ac13
@ -590,6 +590,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);
|
||||||
@ -1375,6 +1377,11 @@ void GMainWindow::OnRemoveAmiibo() {
|
|||||||
ui.action_Remove_Amiibo->setEnabled(false);
|
ui.action_Remove_Amiibo->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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();
|
||||||
|
@ -71,6 +71,8 @@
|
|||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="menu_Amiibo"/>
|
<addaction name="menu_Amiibo"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
<addaction name="action_Open_Citra_Folder"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
<addaction name="action_Exit"/>
|
<addaction name="action_Exit"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menu_Emulation">
|
<widget class="QMenu" name="menu_Emulation">
|
||||||
@ -446,6 +448,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