Sticky Server and Note Automation as GUI setting
This commit is contained in:
@@ -139,6 +139,7 @@ double Settings::getHUSHPrice() {
|
||||
double Settings::getEURPrice() {
|
||||
return EURPrice;
|
||||
}
|
||||
|
||||
double Settings::getBTCPrice() {
|
||||
return BTCPrice;
|
||||
}
|
||||
@@ -250,6 +251,22 @@ void Settings::setAllowFetchPrices(bool allow) {
|
||||
QSettings().setValue("options/allowfetchprices", allow);
|
||||
}
|
||||
|
||||
bool Settings::getUseStickyServer() {
|
||||
return QSettings().value("connection/stickyServer", false).toBool();
|
||||
}
|
||||
|
||||
void Settings::setUseStickyServer(bool allow) {
|
||||
QSettings().setValue("connection/stickyServer", allow);
|
||||
}
|
||||
|
||||
bool Settings::getUseNoteAutomation() {
|
||||
return QSettings().value("options/useNoteAutomation", true).toBool();
|
||||
}
|
||||
|
||||
void Settings::setUseNoteAutomation(bool allow) {
|
||||
QSettings().setValue("options/useNoteAutomation", allow);
|
||||
}
|
||||
|
||||
QString Settings::get_currency_name() {
|
||||
// Load from the QT Settings.
|
||||
return QSettings().value("options/currency_name", false).toString();
|
||||
|
||||
Reference in New Issue
Block a user