settings: load scan defaults before save scan.conf

Origin commit data
------------------
Branch: ni/coolstream
Commit: fd29a18386
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-02-09 (Tue, 09 Feb 2021)

Origin message was:
------------------
- settings: load scan defaults before save scan.conf

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-02-09 20:31:44 +01:00
parent 81fcddcc07
commit 4bad345f48

View File

@@ -22,6 +22,7 @@
*/
#include <cstring>
#include <unistd.h>
#include <system/settings.h>
#include <zapit/settings.h>
@@ -190,6 +191,10 @@ bool CScanSettings::loadSettings(const char * const fileName)
bool CScanSettings::saveSettings(const char * const fileName)
{
// get sure we got initialized variables
if (access(fileName, R_OK) != 0)
loadSettings(fileName);
configfile.setInt32("bouquetMode", bouquetMode);
configfile.setInt32("scanType", scanType);