From 106c8fe46fff8704b5b0f48bd38c80a710d28bb8 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 7 Aug 2012 20:22:26 +0200 Subject: [PATCH] Minor reordering of infill options in GUI; also hide the entire staticbox if threads are not available --- lib/Slic3r/GUI/Tab.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index 93fe8eba15..6dc19c2bd9 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -393,7 +393,11 @@ sub build { $self->add_options_page('Infill', 'shading.png', optgroups => [ { title => 'Infill', - options => [qw(fill_density fill_angle fill_pattern solid_fill_pattern infill_every_layers)], + options => [qw(fill_density fill_pattern solid_fill_pattern)], + }, + { + title => 'Advanced', + options => [qw(infill_every_layers fill_angle)], }, ]); @@ -471,10 +475,10 @@ sub build { title => 'Flow', options => [qw(bridge_flow_ratio)], }, - { + $Slic3r::have_threads ? { title => 'Other', - options => [($Slic3r::have_threads ? qw(threads) : ())], - }, + options => [qw(threads)], + } : (), ]); }