mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-07 11:06:10 +08:00
Fix crash on exit
This commit is contained in:
parent
4e510dc3e7
commit
09c9f567f2
@ -751,6 +751,10 @@ void Tab::load_key_value(const std::string& opt_key, const boost::any& value, bo
|
|||||||
|
|
||||||
void Tab::on_value_change(const std::string& opt_key, const boost::any& value)
|
void Tab::on_value_change(const std::string& opt_key, const boost::any& value)
|
||||||
{
|
{
|
||||||
|
if (wxGetApp().plater() == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const bool is_fff = supports_printer_technology(ptFFF);
|
const bool is_fff = supports_printer_technology(ptFFF);
|
||||||
ConfigOptionsGroup* og_freq_chng_params = wxGetApp().sidebar().og_freq_chng_params(is_fff);
|
ConfigOptionsGroup* og_freq_chng_params = wxGetApp().sidebar().og_freq_chng_params(is_fff);
|
||||||
if (opt_key == "fill_density" || opt_key == "pad_enable")
|
if (opt_key == "fill_density" || opt_key == "pad_enable")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user