mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 20:40:41 +08:00
A couple minor fixes for the new GUI
This commit is contained in:
parent
5d77c160c6
commit
4fe51125cf
@ -656,7 +656,7 @@ sub load_presets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $selected = shift @sel;
|
my $selected = shift @sel;
|
||||||
if ($selected <= $#presets) {
|
if (defined $selected && $selected <= $#presets) {
|
||||||
# call SetSelection() only after SetString() otherwise the new string
|
# call SetSelection() only after SetString() otherwise the new string
|
||||||
# won't be picked up as the visible string
|
# won't be picked up as the visible string
|
||||||
$choice->SetSelection($selected);
|
$choice->SetSelection($selected);
|
||||||
|
@ -33,7 +33,7 @@ sub config {
|
|||||||
for grep $external_config->has($_), @$keys;
|
for grep $external_config->has($_), @$keys;
|
||||||
|
|
||||||
# For extra_keys we don't populate defaults.
|
# For extra_keys we don't populate defaults.
|
||||||
if ($extra_keys) {
|
if ($extra_keys && !$self->external) {
|
||||||
$config->set($_, $external_config->get($_))
|
$config->set($_, $external_config->get($_))
|
||||||
for grep $external_config->has($_), @$extra_keys;
|
for grep $external_config->has($_), @$extra_keys;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user