mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 22:35:58 +08:00
Partially revert of d327a6b2
It looks like CallAfter is no needed any more
This commit is contained in:
parent
a9eebb27f8
commit
0371dc7d41
@ -1112,10 +1112,14 @@ void Sidebar::update_presets(Preset::Type preset_type)
|
|||||||
case Preset::TYPE_PRINTER:
|
case Preset::TYPE_PRINTER:
|
||||||
{
|
{
|
||||||
update_all_preset_comboboxes();
|
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,
|
// 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.
|
// when printer technology is changed during a project loading AND/OR switching the application mode.
|
||||||
// Otherwise, some of comboboxes are invisible
|
// Otherwise, some of comboboxes are invisible
|
||||||
CallAfter([this]() { p->show_preset_comboboxes(); });
|
CallAfter([this]() { p->show_preset_comboboxes(); });
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user