populate default debug.ini with more values (#5411)

* populate default debug.ini with more values

* move the default debug.ini to a resource
This commit is contained in:
RickyRister 2025-01-03 12:50:30 -08:00 committed by GitHub
parent 0402d4b853
commit fa79c5c36a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 2 deletions

View file

@ -5,9 +5,9 @@
DebugSettings::DebugSettings(const QString &settingPath, QObject *parent)
: SettingsManager(settingPath + "debug.ini", parent)
{
// force debug.ini to be created if it doesn't exist yet
// Create the default debug.ini if it doesn't exist yet
if (!QFile(settingPath + "debug.ini").exists()) {
setValue(false, "showCardId", "debug");
QFile::copy(":/resources/config/debug.ini", settingPath + "debug.ini");
}
}