mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-20 19:42:21 -07:00
FIX: add import and load config log
Jira: XXXX Change-Id: Id32e28cf2cf30816d14f9810feb29eaf24e83231
This commit is contained in:
parent
931343f071
commit
042bf04446
3 changed files with 9 additions and 1 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue