mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Fix crash on exit
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user