Disabled DoubleBuffered for Tabs

+ set helper functions like a static (GUI_ObjectList.cpp)
This commit is contained in:
YuSanka 2019-03-14 15:45:52 +01:00
parent 8245921e74
commit 639b641722
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

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