Fix of missplaced checkbox Perform desktop integration in config wizard.

This commit is contained in:
David Kocik 2021-08-19 11:00:36 +02:00
parent 97418cf9f5
commit c08b4be0e6

View File

@ -494,15 +494,7 @@ PageWelcome::PageWelcome(ConfigWizard *parent)
{ {
welcome_text->Hide(); welcome_text->Hide();
cbox_reset->Hide(); cbox_reset->Hide();
#if defined(__linux__) && defined(SLIC3R_DESKTOP_INTEGRATION) cbox_integrate->Hide();
if (!DesktopIntegrationDialog::is_integrated())
cbox_integrate->Show(true);
else
cbox_integrate->Hide();
#else
cbox_integrate->Hide();
#endif
} }
void PageWelcome::set_run_reason(ConfigWizard::RunReason run_reason) void PageWelcome::set_run_reason(ConfigWizard::RunReason run_reason)
@ -510,7 +502,7 @@ void PageWelcome::set_run_reason(ConfigWizard::RunReason run_reason)
const bool data_empty = run_reason == ConfigWizard::RR_DATA_EMPTY; const bool data_empty = run_reason == ConfigWizard::RR_DATA_EMPTY;
welcome_text->Show(data_empty); welcome_text->Show(data_empty);
cbox_reset->Show(!data_empty); cbox_reset->Show(!data_empty);
#ifdef __linux__ #if defined(__linux__) && defined(SLIC3R_DESKTOP_INTEGRATION)
if (!DesktopIntegrationDialog::is_integrated()) if (!DesktopIntegrationDialog::is_integrated())
cbox_integrate->Show(true); cbox_integrate->Show(true);
else else