fix refresh speed for currency changes
This commit is contained in:
@@ -424,6 +424,8 @@ void MainWindow::setupSettingsModal() {
|
||||
|
||||
this->slot_change_currency(currency_name);
|
||||
|
||||
;
|
||||
|
||||
|
||||
// Setup theme combo
|
||||
int theme_index = settings.comboBoxTheme->findText(Settings::getInstance()->get_theme_name(), Qt::MatchExactly);
|
||||
@@ -442,9 +444,10 @@ void MainWindow::setupSettingsModal() {
|
||||
|
||||
QObject::connect(settings.comboBoxCurrency, &QComboBox::currentTextChanged, [=] (QString currency_name) {
|
||||
this->slot_change_currency(currency_name);
|
||||
rpc->refresh(true);
|
||||
|
||||
// Tell the user to restart
|
||||
QMessageBox::information(this, tr("Currency Change"), tr("Please restart SilentDragonLite to have new currencies apply"), QMessageBox::Ok);
|
||||
QMessageBox::information(this, tr("Currency Change"), tr("This change can take a few seconds."), QMessageBox::Ok);
|
||||
});
|
||||
|
||||
// Check for updates
|
||||
|
||||
Reference in New Issue
Block a user