#161 Allow configuration for prices/check updates
This commit is contained in:
@@ -124,6 +124,22 @@ void Settings::setAutoShield(bool allow) {
|
||||
QSettings().setValue("options/autoshield", allow);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
bool Settings::getAllowCustomFees() {
|
||||
// Load from the QT Settings.
|
||||
return QSettings().value("options/customfees", false).toBool();
|
||||
|
||||
Reference in New Issue
Block a user