mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fix bitmap loading in new dialogs
This commit is contained in:
parent
6d34db352d
commit
28effac0f1
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ MsgDialog::~MsgDialog() {}
|
||||||
// ErrorDialog
|
// ErrorDialog
|
||||||
|
|
||||||
ErrorDialog::ErrorDialog(wxWindow *parent, const wxString &msg) :
|
ErrorDialog::ErrorDialog(wxWindow *parent, const wxString &msg) :
|
||||||
MsgDialog(parent, _(L("Slic3r error")), _(L("Slic3r has encountered an error")), wxBitmap(from_u8(Slic3r::var("Slic3r_192px_grayscale.png"))))
|
MsgDialog(parent, _(L("Slic3r error")), _(L("Slic3r has encountered an error")), wxBitmap(from_u8(Slic3r::var("Slic3r_192px_grayscale.png")), wxBITMAP_TYPE_PNG))
|
||||||
{
|
{
|
||||||
auto *panel = new wxScrolledWindow(this);
|
auto *panel = new wxScrolledWindow(this);
|
||||||
auto *p_sizer = new wxBoxSizer(wxVERTICAL);
|
auto *p_sizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
|
@ -105,7 +105,7 @@ MsgUpdateConfig::~MsgUpdateConfig() {}
|
||||||
// MsgDataIncompatible
|
// MsgDataIncompatible
|
||||||
|
|
||||||
MsgDataIncompatible::MsgDataIncompatible(const std::unordered_map<std::string, wxString> &incompats) :
|
MsgDataIncompatible::MsgDataIncompatible(const std::unordered_map<std::string, wxString> &incompats) :
|
||||||
MsgDialog(nullptr, _(L("Slic3r incompatibility")), _(L("Slic3r configuration is incompatible")), wxBitmap(from_u8(Slic3r::var("Slic3r_192px_grayscale.png"))), wxID_NONE)
|
MsgDialog(nullptr, _(L("Slic3r incompatibility")), _(L("Slic3r configuration is incompatible")), wxBitmap(from_u8(Slic3r::var("Slic3r_192px_grayscale.png")), wxBITMAP_TYPE_PNG), wxID_NONE)
|
||||||
{
|
{
|
||||||
auto *text = new wxStaticText(this, wxID_ANY, _(L(
|
auto *text = new wxStaticText(this, wxID_ANY, _(L(
|
||||||
"This version of Slic3r PE is not compatible with currently installed configuration bundles.\n"
|
"This version of Slic3r PE is not compatible with currently installed configuration bundles.\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue