Partially revert of d327a6b2

It looks like CallAfter is no needed any more
This commit is contained in:
YuSanka 2023-09-21 10:41:50 +02:00
parent a9eebb27f8
commit 0371dc7d41

View File

@ -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;
}