解决飞简体中文模式下,设置界面恢复按钮功能异常的问题;

This commit is contained in:
yangjiaxuan 2024-05-18 16:00:40 +08:00
parent acf2827d7f
commit 397076c9d3
1 changed files with 2 additions and 1 deletions

View File

@ -2537,7 +2537,8 @@ void hg_settingdialog::slot_pushButton_scheme_management(void)
}
else if (btn == m_pbtn_restore)
{
cur_scheme_ = cur_cfg_->get_scheme(comb_->currentText().toStdString().c_str());
bool ok = false;
cur_scheme_ = cur_cfg_->get_scheme(to_default_language(comb_->currentText().toStdString().c_str(), &ok));
hg_settingdialog::apply_scheme(m_devHandle, &m_saneAPI, cur_scheme_);
updateUIStatus();
updateRestorePushButton();