Fix filament profile import if inherit from vendor generic (#11398)

* Why log user id when importing profile?

* Use `find_preset2` when importing profiles
to properly handle renamed system profiles
This commit is contained in:
Noisyfox 2025-11-22 15:38:12 +08:00 committed by GitHub
parent 7b0cdd3ec6
commit 61931d23a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 6 deletions

View file

@ -3454,10 +3454,6 @@ void MainFrame::load_config_file()
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();
}
}
wxGetApp().preset_bundle->update_compatible(PresetSelectCompatibleType::Always);
update_side_preset_ui();