mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-19 01:15:56 +08:00
FIX: missing unlock cause device or resource busy
Change-Id: I87563312ea9c6ce4e4e471da7ce7a02b53b64762
This commit is contained in:
parent
0b68a3ac72
commit
268fa5dc8b
@ -1645,6 +1645,7 @@ bool PresetCollection::load_user_preset(std::string name, std::map<std::string,
|
|||||||
// base_id
|
// base_id
|
||||||
if (preset_values.find(BBL_JSON_KEY_BASE_ID) == preset_values.end()) {
|
if (preset_values.find(BBL_JSON_KEY_BASE_ID) == preset_values.end()) {
|
||||||
BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format("can not find base_id, not loading for user preset %1%") % name;
|
BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format("can not find base_id, not loading for user preset %1%") % name;
|
||||||
|
unlock();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::string cloud_base_id = preset_values[BBL_JSON_KEY_BASE_ID];
|
std::string cloud_base_id = preset_values[BBL_JSON_KEY_BASE_ID];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user