Sticky Server and Note Automation as GUI setting
This commit is contained in:
@@ -838,7 +838,13 @@ void MainWindow::setupSettingsModal() {
|
||||
|
||||
// Fetch prices
|
||||
settings.chkFetchPrices->setChecked(Settings::getInstance()->getAllowFetchPrices());
|
||||
|
||||
|
||||
// Check Status of StickyServer
|
||||
settings.chkUseStickyServer->setChecked(Settings::getInstance()->getUseStickyServer());
|
||||
|
||||
// Check Status of Note Automation
|
||||
settings.chkUseNoteAutomation->setChecked(Settings::getInstance()->getUseNoteAutomation())
|
||||
|
||||
// List of default servers
|
||||
settings.cmbServer->addItem("https://lite.hush.is");
|
||||
settings.cmbServer->addItem("https://lite.hush.land");
|
||||
@@ -867,6 +873,13 @@ void MainWindow::setupSettingsModal() {
|
||||
// Allow fetching prices
|
||||
Settings::getInstance()->setAllowFetchPrices(settings.chkFetchPrices->isChecked());
|
||||
|
||||
// Set State for Use Sticky Server
|
||||
Settings::getInstance()->setUseStickyServer(settings.chkUseStickyServer->isChecked());
|
||||
|
||||
// Set State for Use Note Automation
|
||||
Settings::getInstance()->setUseNoteAutomation(settings.chkUseNoteAutomation->isChecked());
|
||||
|
||||
|
||||
// Save the server
|
||||
bool reloadConnection = false;
|
||||
if (conf.server != settings.cmbServer->currentText().trimmed()) {
|
||||
|
||||
Reference in New Issue
Block a user