mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-19 12:41:54 -04:00
UI: View Log menu entry in Help -> Log Files menu
Since the file being logged to changes with each run, opening a log file is a tad more involved than desirable when it's necessary to view the log each time OBS is run. This new menu entry shortcuts opening the file from the file system manually.
This commit is contained in:
1 parent
aa681119c7
commit
c3e382c8f7
4 files changed
+24
No files matched your search
@@ -2111,6 +2111,22 @@ void OBSBasic::on_actionUploadLastLog_triggered()
|
||||
UploadLog(App()->GetLastLog());
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionViewCurrentLog_triggered()
|
||||
{
|
||||
char logDir[512];
|
||||
if (os_get_config_path(logDir, sizeof(logDir), "obs-studio/logs") <= 0)
|
||||
return;
|
||||
|
||||
const char* log = App()->GetCurrentLog();
|
||||
|
||||
string path = (char*)logDir;
|
||||
path += "/";
|
||||
path += log;
|
||||
|
||||
QUrl url = QUrl::fromLocalFile(QT_UTF8(path.c_str()));
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionCheckForUpdates_triggered()
|
||||
{
|
||||
CheckForUpdates();
|
||||
|
||||
Reference in new issue
Block a user