mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 20:56:02 +08:00
FIX: [STUDIO-3725] sync user presets go to wrong folder
Change-Id: I99348ebbf6f3deae471bc5078a0645b81663bf3a
This commit is contained in:
parent
83cd88d4b8
commit
583c6c86c2
@ -4669,17 +4669,17 @@ void GUI_App::start_sync_user_preset(bool with_progress_dlg)
|
||||
cancelFn = [this, dlg]() {
|
||||
return dlg->WasCanceled();
|
||||
};
|
||||
finishFn = [this, dlg](bool ok) {
|
||||
finishFn = [this, userid = m_agent->get_user_id(), dlg](bool ok) {
|
||||
CallAfter([=]{
|
||||
dlg->Destroy();
|
||||
if (ok) reload_settings();
|
||||
if (ok && userid == m_agent->get_user_id()) reload_settings();
|
||||
});
|
||||
};
|
||||
}
|
||||
else {
|
||||
finishFn = [this](bool ok) {
|
||||
finishFn = [this, userid = m_agent->get_user_id()](bool ok) {
|
||||
CallAfter([=] {
|
||||
if (ok) reload_settings();
|
||||
if (ok && userid == m_agent->get_user_id()) reload_settings();
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user