mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Import wxTheApp
This commit is contained in:
parent
ddac2d1570
commit
3d8c8fa46e
8 changed files with 42 additions and 39 deletions
|
@ -2,7 +2,7 @@ package Slic3r::GUI::OptionsGroup;
|
|||
use Moo;
|
||||
|
||||
use List::Util qw(first);
|
||||
use Wx qw(:combobox :font :misc :sizer :systemsettings :textctrl);
|
||||
use Wx qw(:combobox :font :misc :sizer :systemsettings :textctrl wxTheApp);
|
||||
use Wx::Event qw(EVT_CHECKBOX EVT_COMBOBOX EVT_SPINCTRL EVT_TEXT EVT_KILL_FOCUS EVT_SLIDER);
|
||||
|
||||
=head1 NAME
|
||||
|
@ -208,7 +208,7 @@ sub _build_field {
|
|||
};
|
||||
EVT_COMBOBOX($self->parent, $field, sub {
|
||||
# Without CallAfter, the field text is not populated on Windows.
|
||||
&Wx::wxTheApp->CallAfter(sub {
|
||||
wxTheApp->CallAfter(sub {
|
||||
$field->SetValue($opt->{values}[ $field->GetSelection ]); # set the text field to the selected value
|
||||
$self->_on_change($opt_key, $on_change);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue