Added GenericCore::getSettings(...) for the UIs (they don't need to use the NetworkHandler directly).

This commit is contained in:
2026-02-03 11:19:24 +01:00
parent 6adf18caeb
commit 7ae10e6ed7
2 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,10 @@ bool GenericCore::exportCSVFile(const QString& filePath) {
return FileHandler::exportToCSVFile(itemsAsStringLists, filePath);
}
QVariantMap GenericCore::getSettings(QString group) const {
return SettingsHandler::getSettings(group);
}
void GenericCore::applySettings(QVariantMap settingMap, QString group) {
SettingsHandler::saveSettings(settingMap, group);

View File

@ -33,6 +33,7 @@ class GenericCore : public QObject {
void importCSVFile(const QString& filePath);
bool exportCSVFile(const QString& filePath);
QVariantMap getSettings(QString group = "") const;
void applySettings(QVariantMap settingMap, QString group = "");
bool isSyncServerSetup() const;