mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-01-12 01:39:10 +01:00
lime_qt: Add Open Log Folder option to Help menu
This commit is contained in:
parent
467afbb041
commit
36c4eee49f
@ -951,6 +951,10 @@ void GMainWindow::ConnectMenuEvents() {
|
|||||||
|
|
||||||
// Help
|
// Help
|
||||||
connect_menu(ui->action_Open_Citra_Folder, &GMainWindow::OnOpenCitraFolder);
|
connect_menu(ui->action_Open_Citra_Folder, &GMainWindow::OnOpenCitraFolder);
|
||||||
|
connect_menu(ui->action_Open_Log_Folder, []() {
|
||||||
|
QString path = QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::LogDir));
|
||||||
|
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||||
|
});
|
||||||
connect_menu(ui->action_FAQ, []() {
|
connect_menu(ui->action_FAQ, []() {
|
||||||
QDesktopServices::openUrl(QUrl(QStringLiteral("https://discord.com/invite/4ZjMpAp3M6")));
|
QDesktopServices::openUrl(QUrl(QStringLiteral("https://discord.com/invite/4ZjMpAp3M6")));
|
||||||
});
|
});
|
||||||
|
@ -203,6 +203,7 @@
|
|||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="action_Report_Compatibility"/>
|
<addaction name="action_Report_Compatibility"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
<addaction name="action_Open_Log_Folder"/>
|
||||||
<addaction name="action_FAQ"/>
|
<addaction name="action_FAQ"/>
|
||||||
<addaction name="action_About"/>
|
<addaction name="action_About"/>
|
||||||
</widget>
|
</widget>
|
||||||
@ -479,6 +480,14 @@
|
|||||||
<string>Fullscreen</string>
|
<string>Fullscreen</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="action_Open_Log_Folder">
|
||||||
|
<property name="text">
|
||||||
|
<string>Open Log Folder</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Opens the Lime3DS Log folder</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
<action name="action_Open_Maintenance_Tool">
|
<action name="action_Open_Maintenance_Tool">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Modify Lime3DS Install</string>
|
<string>Modify Lime3DS Install</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user