mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-23 21:25:13 +00:00
Compare commits
1 Commits
fix/bambu-
...
fix/preset
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61844a07f8 |
@@ -5849,17 +5849,20 @@ void GUI_App::reload_settings()
|
|||||||
load_pending_vendors();
|
load_pending_vendors();
|
||||||
preset_bundle->load_user_presets(*app_config, user_presets, ForwardCompatibilitySubstitutionRule::Enable);
|
preset_bundle->load_user_presets(*app_config, user_presets, ForwardCompatibilitySubstitutionRule::Enable);
|
||||||
preset_bundle->save_user_presets(*app_config, get_delete_cache_presets());
|
preset_bundle->save_user_presets(*app_config, get_delete_cache_presets());
|
||||||
if (is_main_thread_active()) {
|
// Orca: settings changed, refresh ui to reflect the new preset values
|
||||||
|
auto refresh_synced_ui = [this] {
|
||||||
mainframe->update_side_preset_ui();
|
mainframe->update_side_preset_ui();
|
||||||
if (plater_)
|
for (auto tab : tabs_list) {
|
||||||
plater_->sidebar().update_all_preset_comboboxes();
|
tab->reload_config();
|
||||||
} else {
|
tab->update_changed_ui();
|
||||||
CallAfter([this] {
|
|
||||||
mainframe->update_side_preset_ui();
|
|
||||||
if (plater_)
|
|
||||||
plater_->sidebar().update_all_preset_comboboxes();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
if (plater_)
|
||||||
|
plater_->sidebar().update_all_preset_comboboxes();
|
||||||
|
};
|
||||||
|
if (is_main_thread_active())
|
||||||
|
refresh_synced_ui();
|
||||||
|
else
|
||||||
|
CallAfter(refresh_synced_ui);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2788,9 +2788,6 @@ void MainFrame::init_menubar_as_editor()
|
|||||||
info_dlg.ShowModal();
|
info_dlg.ShowModal();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_plater)
|
|
||||||
m_plater->get_notification_manager()->push_notification(
|
|
||||||
into_u8(_L("Syncing presets from cloud\u2026")));
|
|
||||||
wxGetApp().restart_sync_user_preset();
|
wxGetApp().restart_sync_user_preset();
|
||||||
}, "", nullptr,
|
}, "", nullptr,
|
||||||
[this]() {
|
[this]() {
|
||||||
|
|||||||
Reference in New Issue
Block a user