解决设置界面读取不到配置方案

This commit is contained in:
yangjiaxuan 2022-08-11 17:40:17 +08:00
parent 9beebde6d7
commit 15fcd5b22a
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ QString config::get_scanner_config_file(void)
if(file.length() == 0)
{
file = "scanner.schm";
HGChar logpath[512] = {0};
HGBase_GetConfigPath(logpath, 512);
file = strcat(logpath, "scanner.schm");
ini_->setValue("schemes", file);
}