Fix of #9496
Downloader preferences options were creashing in Gcode Viewer.
This commit is contained in:
parent
bb4bf85fb3
commit
23aa139dbd
@ -708,15 +708,16 @@ void PreferencesDialog::update_ctrls_alignment()
|
|||||||
|
|
||||||
void PreferencesDialog::accept(wxEvent&)
|
void PreferencesDialog::accept(wxEvent&)
|
||||||
{
|
{
|
||||||
if (const auto it = m_values.find("downloader_url_registered"); it != m_values.end())
|
if(wxGetApp().is_editor()) {
|
||||||
downloader->allow(it->second == "1");
|
if (const auto it = m_values.find("downloader_url_registered"); it != m_values.end())
|
||||||
if (!downloader->on_finish())
|
downloader->allow(it->second == "1");
|
||||||
return;
|
if (!downloader->on_finish())
|
||||||
|
return;
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if( downloader->get_perform_registration_linux())
|
if( downloader->get_perform_registration_linux())
|
||||||
DesktopIntegrationDialog::perform_desktop_integration(true);
|
DesktopIntegrationDialog::perform_desktop_integration(true);
|
||||||
#endif // __linux__
|
#endif // __linux__
|
||||||
|
}
|
||||||
|
|
||||||
bool update_filament_sidebar = (m_values.find("no_templates") != m_values.end());
|
bool update_filament_sidebar = (m_values.find("no_templates") != m_values.end());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user