Disabled DoubleBuffered for Tabs
+ set helper functions like a static (GUI_ObjectList.cpp)
This commit is contained in:
parent
8245921e74
commit
639b641722
2 changed files with 3 additions and 3 deletions
|
@ -44,12 +44,12 @@ static PrinterTechnology printer_technology()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config from current edited printer preset
|
// Config from current edited printer preset
|
||||||
DynamicPrintConfig& printer_config()
|
static DynamicPrintConfig& printer_config()
|
||||||
{
|
{
|
||||||
return wxGetApp().preset_bundle->printers.get_edited_preset().config;
|
return wxGetApp().preset_bundle->printers.get_edited_preset().config;
|
||||||
}
|
}
|
||||||
|
|
||||||
int extruders_count()
|
static int extruders_count()
|
||||||
{
|
{
|
||||||
return printer_technology() == ptSLA ? 1 :
|
return printer_technology() == ptSLA ? 1 :
|
||||||
printer_config().option<ConfigOptionFloats>("nozzle_diameter")->values.size();
|
printer_config().option<ConfigOptionFloats>("nozzle_diameter")->values.size();
|
||||||
|
|
|
@ -74,7 +74,7 @@ void Tab::set_type()
|
||||||
void Tab::create_preset_tab()
|
void Tab::create_preset_tab()
|
||||||
{
|
{
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
SetDoubleBuffered(true);
|
// SetDoubleBuffered(true);
|
||||||
#endif //__WINDOWS__
|
#endif //__WINDOWS__
|
||||||
|
|
||||||
m_preset_bundle = wxGetApp().preset_bundle;
|
m_preset_bundle = wxGetApp().preset_bundle;
|
||||||
|
|
Loading…
Reference in a new issue