mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 22:55:53 +08:00
Fix harmless typo
This commit is contained in:
parent
928335f186
commit
9053cdca5d
@ -29,7 +29,7 @@ use constant TB_SCALE => &Wx::NewId;
|
|||||||
use constant TB_SPLIT => &Wx::NewId;
|
use constant TB_SPLIT => &Wx::NewId;
|
||||||
use constant TB_VIEW => &Wx::NewId;
|
use constant TB_VIEW => &Wx::NewId;
|
||||||
use constant TB_SETTINGS => &Wx::NewId;
|
use constant TB_SETTINGS => &Wx::NewId;
|
||||||
use constant apply_config_timer_EVENT => &Wx::NewId;
|
use constant CONFIG_TIMER_ID => &Wx::NewId;
|
||||||
|
|
||||||
# package variables to avoid passing lexicals to threads
|
# package variables to avoid passing lexicals to threads
|
||||||
our $THUMBNAIL_DONE_EVENT : shared = Wx::NewEventType;
|
our $THUMBNAIL_DONE_EVENT : shared = Wx::NewEventType;
|
||||||
@ -55,7 +55,7 @@ sub new {
|
|||||||
$self->{model} = Slic3r::Model->new;
|
$self->{model} = Slic3r::Model->new;
|
||||||
$self->{print} = Slic3r::Print->new;
|
$self->{print} = Slic3r::Print->new;
|
||||||
$self->{objects} = [];
|
$self->{objects} = [];
|
||||||
$self->{apply_config_timer} = Wx::Timer->new($self, apply_config_timer_EVENT)
|
$self->{apply_config_timer} = Wx::Timer->new($self, CONFIG_TIMER_ID)
|
||||||
if $Slic3r::have_threads;
|
if $Slic3r::have_threads;
|
||||||
|
|
||||||
$self->{print}->set_status_cb(sub {
|
$self->{print}->set_status_cb(sub {
|
||||||
@ -245,7 +245,7 @@ sub new {
|
|||||||
Slic3r::thread_cleanup();
|
Slic3r::thread_cleanup();
|
||||||
});
|
});
|
||||||
|
|
||||||
EVT_TIMER($self, apply_config_timer_EVENT, sub {
|
EVT_TIMER($self, CONFIG_TIMER_ID, sub {
|
||||||
my ($self, $event) = @_;
|
my ($self, $event) = @_;
|
||||||
$self->async_apply_config;
|
$self->async_apply_config;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user