mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-22 22:48:54 +02:00
Load the wxWidgets PNG handler only once.
This commit is contained in:
1 parent
a0268a1906
commit
354408c7e6
2 files changed
+3
-2
No files matched your search
@@ -34,7 +34,8 @@ PresetBundle::PresetBundle() :
|
||||
m_bitmapCompatible(new wxBitmap),
|
||||
m_bitmapIncompatible(new wxBitmap)
|
||||
{
|
||||
::wxInitAllImageHandlers();
|
||||
if (wxImage::FindHandler(wxBITMAP_TYPE_PNG) == nullptr)
|
||||
wxImage::AddHandler(new wxPNGHandler);
|
||||
|
||||
// Create the ID config keys, as they are not part of the Static print config classes.
|
||||
this->prints.preset(0).config.opt_string("print_settings_id", true);
|
||||
|
||||
Reference in new issue
Block a user