mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-06 07:46:54 +08:00
FIX: crash when no WMP
Change-Id: I9bab2e73da05125ee2ca24ac13456fbb82e91714
This commit is contained in:
parent
13bd9ca445
commit
405444f042
@ -233,8 +233,10 @@ void wxMediaCtrl2::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
BOOST_LOG_TRIVIAL(info) << "wxMediaCtrl2::DoSetSize: width: " << width << ", height: " << height << ", maxHeight: " << maxHeight;
|
BOOST_LOG_TRIVIAL(info) << "wxMediaCtrl2::DoSetSize: width: " << width << ", height: " << height << ", maxHeight: " << maxHeight;
|
||||||
SetMaxSize({-1, maxHeight});
|
SetMaxSize({-1, maxHeight});
|
||||||
Slic3r::GUI::wxGetApp().CallAfter([this] {
|
Slic3r::GUI::wxGetApp().CallAfter([this] {
|
||||||
GetParent()->Layout();
|
if (auto p = GetParent()) {
|
||||||
GetParent()->Refresh();
|
p->Layout();
|
||||||
|
p->Refresh();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user