GUI: Open Log Location - Button (#2102)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions

This commit is contained in:
DanielSvoboda 2025-01-09 03:42:07 -03:00 committed by GitHub
parent 65f9bbbfed
commit 93402620de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 130 additions and 0 deletions

View file

@ -17,6 +17,7 @@
#ifdef ENABLE_UPDATER #ifdef ENABLE_UPDATER
#include "check_update.h" #include "check_update.h"
#endif #endif
#include <QDesktopServices>
#include <toml.hpp> #include <toml.hpp>
#include "background_music_player.h" #include "background_music_player.h"
#include "common/logging/backend.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 // Descriptions
{ {
// General // General

View file

@ -1394,6 +1394,13 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QPushButton" name="OpenLogLocationButton">
<property name="text">
<string>Open Log Location</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>مرشح السجل</translation> <translation>مرشح السجل</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>افتح موقع السجل</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>إدخال</translation> <translation>إدخال</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Åbn logplacering</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Indtastning</translation> <translation>Indtastning</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log-Filter</translation> <translation>Log-Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Protokollspeicherort öffnen</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Eingabe</translation> <translation>Eingabe</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Άνοιγμα τοποθεσίας αρχείου καταγραφής</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Είσοδος</translation> <translation>Είσοδος</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Open Log Location</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Input</translation> <translation>Input</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Filtro de registro</translation> <translation>Filtro de registro</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Abrir ubicación del registro</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Entrada</translation> <translation>Entrada</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log فیلتر</translation> <translation>Log فیلتر</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>باز کردن مکان گزارش</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>ورودی</translation> <translation>ورودی</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Lokisuodatin</translation> <translation>Lokisuodatin</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Avaa lokin sijainti</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Syöttö</translation> <translation>Syöttö</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Filtre</translation> <translation>Filtre</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Ouvrir l'emplacement du journal</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Entrée</translation> <translation>Entrée</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Naplózási Filter</translation> <translation>Naplózási Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Napló helyének megnyitása</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Bemenet</translation> <translation>Bemenet</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Buka Lokasi Log</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Masukan</translation> <translation>Masukan</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Filtro Log</translation> <translation>Filtro Log</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Apri posizione del registro</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Input</translation> <translation>Input</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation></translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation></translation> <translation></translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation> </translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Input</translation> <translation>Input</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Atidaryti žurnalo vietą</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Įvestis</translation> <translation>Įvestis</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Logg filter</translation> <translation>Logg filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Åpne loggplassering</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Inndata</translation> <translation>Inndata</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Loglocatie openen</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Invoer</translation> <translation>Invoer</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Filtrowanie dziennika</translation> <translation>Filtrowanie dziennika</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Otwórz lokalizację dziennika</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Wejście</translation> <translation>Wejście</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Filtro do Registro</translation> <translation>Filtro do Registro</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Abrir local do log</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Entradas</translation> <translation>Entradas</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Deschide locația jurnalului</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Introducere</translation> <translation>Introducere</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Фильтр логов</translation> <translation>Фильтр логов</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Открыть местоположение журнала</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Ввод</translation> <translation>Ввод</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Filtri i Ditarit</translation> <translation>Filtri i Ditarit</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Hap vendndodhjen e regjistrit</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Hyrja</translation> <translation>Hyrja</translation>

View file

@ -1064,6 +1064,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Loggfilter</translation> <translation>Loggfilter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Öppna loggplats</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Inmatning</translation> <translation>Inmatning</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Kayıt Filtresi</translation> <translation>Kayıt Filtresi</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Günlük Konumunu </translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Girdi</translation> <translation>Girdi</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Фільтр логів</translation> <translation>Фільтр логів</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Відкрити місце розташування журналу</translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Введення</translation> <translation>Введення</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation>Mở vị trí nhật </translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation>Đu vào</translation> <translation>Đu vào</translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation></translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation></translation> <translation></translation>

View file

@ -576,6 +576,10 @@
<source>Log Filter</source> <source>Log Filter</source>
<translation>Log Filter</translation> <translation>Log Filter</translation>
</message> </message>
<message>
<source>Open Log Location</source>
<translation></translation>
</message>
<message> <message>
<source>Input</source> <source>Input</source>
<translation></translation> <translation></translation>