FIX: add import and load config log

Jira: XXXX

Change-Id: Id32e28cf2cf30816d14f9810feb29eaf24e83231
This commit is contained in:
maosheng.wei 2023-10-17 18:11:30 +08:00 committed by Lane.Wei
parent 931343f071
commit 042bf04446
3 changed files with 9 additions and 1 deletions

View file

@ -3195,6 +3195,11 @@ void MainFrame::load_config_file()
if (!cfiles.empty()) {
wxGetApp().app_config->update_config_dir(get_dir_name(cfiles.back()));
wxGetApp().load_current_presets();
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " presets has been import,and size is" << cfiles.size();
NetworkAgent* agent = wxGetApp().getAgent();
if (agent) {
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " user is: " << agent->get_user_id();
}
}
MessageDialog dlg2(this, wxString::Format(_L_PLURAL("There is %d config imported. (Only non-system and compatible configs)",
"There are %d configs imported. (Only non-system and compatible configs)", cfiles.size()), cfiles.size()),