Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2012-07-24 17:30:50 +0400
committerAlessandro Ranellucci <aar@cpan.org>2012-07-24 17:33:11 +0400
commit1d364d7823264fcce95757cbd54408edd12eb033 (patch)
tree540aad23c4487f2009aeedd3c65ec8fcfac13249 /slic3r.pl
parent09a222f8b21f6d45e0af0caddd71171d9e06da18 (diff)
Refactor OptionsGroup to decouple it from the config repository, add ConfigOptionsGroup
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-xslic3r.pl7
1 files changed, 1 insertions, 6 deletions
diff --git a/slic3r.pl b/slic3r.pl
index 977f7f0fb..54f72c406 100755
--- a/slic3r.pl
+++ b/slic3r.pl
@@ -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;
}