调整界面初始化语言包过快,倒是sane下面没有切换过来

This commit is contained in:
13038267101 2023-02-01 11:11:11 +08:00
parent c146a14c15
commit 03593fc06e
1 changed files with 4 additions and 1 deletions

View File

@ -372,13 +372,16 @@ hg_sane_middleware::hg_sane_middleware(void) : opt_0_(nullptr), init_ok_(false)
char sane_ver[40] = { 0 };
init_ok_ = true;
register_language_changed_notify(&hg_sane_middleware::language_changed, true);
sprintf(sane_ver, "%u.%u.%u", SANE_CURRENT_MAJOR, SANE_CURRENT_MINOR, VERSION_BUILD);
signal(SIGUSR1, &hg_sane_middleware::device_pnp);
hg_scanner_set_sane_info(g_sane_name.c_str(), sane_ver);
hg_scanner_initialize(local_utility::ui_cb, NULL);
if (lang_get_cur_code_page() != DEFAULT_CODE_PAGE)
lang_refresh_language();
register_language_changed_notify(&hg_sane_middleware::language_changed, true);
#if !defined(WIN32) && !defined(_WIN64)
char path[512] = { 0 };
size_t pos = 0;