Add support for disabling log from settings
This commit is contained in:
parent
ae311eb3ef
commit
371b61f3ea
8 changed files with 37 additions and 0 deletions
|
@ -76,14 +76,28 @@ void Config::SaveData() {
|
|||
qt_config->endGroup();
|
||||
}
|
||||
|
||||
void Config::ReadMiscellaneous() {
|
||||
qt_config->beginGroup("Miscellaneous");
|
||||
Settings::values.enable_log = qt_config->value("enable_log", true).toBool();
|
||||
qt_config->endGroup();
|
||||
}
|
||||
|
||||
void Config::SaveMiscellaneous() {
|
||||
qt_config->beginGroup("Miscellaneous");
|
||||
qt_config->setValue("enable_log", Settings::values.enable_log);
|
||||
qt_config->endGroup();
|
||||
}
|
||||
|
||||
void Config::Reload() {
|
||||
ReadControls();
|
||||
ReadData();
|
||||
ReadMiscellaneous();
|
||||
}
|
||||
|
||||
void Config::Save() {
|
||||
SaveControls();
|
||||
SaveData();
|
||||
SaveMiscellaneous();
|
||||
}
|
||||
|
||||
Config::~Config() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue