mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-17 17:05:02 +00:00
GUI: Open Log Location - Button (#2102)
This commit is contained in:
parent
65f9bbbfed
commit
93402620de
30 changed files with 130 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#ifdef ENABLE_UPDATER
|
||||
#include "check_update.h"
|
||||
#endif
|
||||
#include <QDesktopServices>
|
||||
#include <toml.hpp>
|
||||
#include "background_music_player.h"
|
||||
#include "common/logging/backend.h"
|
||||
|
@ -203,6 +204,16 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
|||
});
|
||||
}
|
||||
|
||||
// DEBUG TAB
|
||||
{
|
||||
connect(ui->OpenLogLocationButton, &QPushButton::clicked, this, []() {
|
||||
QString userPath;
|
||||
Common::FS::PathToQString(userPath,
|
||||
Common::FS::GetUserPath(Common::FS::PathType::UserDir));
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(userPath + "/log"));
|
||||
});
|
||||
}
|
||||
|
||||
// Descriptions
|
||||
{
|
||||
// General
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue