Browse Source

settings for price/update feed

pull/51/head
Jonathan "Duke" Leto 5 years ago
parent
commit
1c0847f958
  1. 17
      src/settings.cpp
  2. 6
      src/settings.h

17
src/settings.cpp

@ -14,6 +14,23 @@ Settings* Settings::getInstance() {
return instance;
}
bool Settings::getCheckForUpdates() {
return QSettings().value("options/allowcheckupdates", true).toBool();
}
void Settings::setCheckForUpdates(bool allow) {
QSettings().setValue("options/allowcheckupdates", allow);
}
bool Settings::getAllowFetchPrices() {
return QSettings().value("options/allowfetchprices", true).toBool();
}
void Settings::setAllowFetchPrices(bool allow) {
QSettings().setValue("options/allowfetchprices", allow);
}
Config Settings::getSettings() {
// Load from the QT Settings.
QSettings s;

6
src/settings.h

@ -62,6 +62,12 @@ public:
bool getAllowCustomFees();
void setAllowCustomFees(bool allow);
bool getAllowFetchPrices();
void setAllowFetchPrices(bool allow);
bool getCheckForUpdates();
void setCheckForUpdates(bool allow);
bool isSaplingActive();

Loading…
Cancel
Save