diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-07-24 17:30:50 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-07-24 17:33:11 +0400 |
commit | 1d364d7823264fcce95757cbd54408edd12eb033 (patch) | |
tree | 540aad23c4487f2009aeedd3c65ec8fcfac13249 /slic3r.pl | |
parent | 09a222f8b21f6d45e0af0caddd71171d9e06da18 (diff) |
Refactor OptionsGroup to decouple it from the config repository, add ConfigOptionsGroup
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -82,12 +82,7 @@ Slic3r::Config->save($opt{save}) if $opt{save}; # apply command line options to GUI as well and start it if ($gui) { - for my $opt_key (keys %cli_options) { - no warnings 'once'; - ( $Slic3r::GUI::OptionsGroup::reload_callbacks{$opt_key} || sub {} )->(); - my $group = first { $opt_key ~~ @$_ } keys %Slic3r::Groups; - $gui->{skeinpanel}{options_tabs}{$group}->set_dirty(1) if $group; - } + $gui->{skeinpanel}->set_value($_, $cli_options{$_}) for keys %cli_options; $gui->MainLoop; exit; } |