From 0371dc7d4156eb81050215da246433aacb14f646 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 21 Sep 2023 10:41:50 +0200 Subject: [PATCH] Partially revert of d327a6b2 It looks like CallAfter is no needed any more --- src/slic3r/GUI/Plater.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index cbeb377017..b3ad1c9261 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1112,10 +1112,14 @@ void Sidebar::update_presets(Preset::Type preset_type) case Preset::TYPE_PRINTER: { update_all_preset_comboboxes(); +#if 1 // #ysFIXME_delete_after_test_of >> it looks like CallAfter() is no need [issue with disapearing of comboboxes are not reproducible] + p->show_preset_comboboxes(); +#else // CallAfter is really needed here to correct layout of the preset comboboxes, // when printer technology is changed during a project loading AND/OR switching the application mode. // Otherwise, some of comboboxes are invisible CallAfter([this]() { p->show_preset_comboboxes(); }); +#endif break; }