mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 14:22:54 +02:00
Remove thread warnings
This commit is contained in:
1 parent
59ba34caf3
commit
2ae2c6a311
1 file changed
+3
-1
@@ -529,6 +529,7 @@ sub on_export_completed {
|
||||
my $self = shift;
|
||||
my ($message) = @_;
|
||||
|
||||
$self->{export_thread}->detach;
|
||||
$self->{export_thread} = undef;
|
||||
$self->statusbar->SetCancelCallback(undef);
|
||||
$self->statusbar->StopBusy;
|
||||
@@ -540,6 +541,7 @@ sub on_export_failed {
|
||||
my $self = shift;
|
||||
my ($message) = @_;
|
||||
|
||||
$self->{export_thread}->detach;
|
||||
$self->{export_thread} = undef;
|
||||
$self->statusbar->SetCancelCallback(undef);
|
||||
$self->statusbar->StopBusy;
|
||||
@@ -605,7 +607,7 @@ sub make_thumbnail {
|
||||
}
|
||||
};
|
||||
|
||||
$Slic3r::have_threads ? threads->create($cb) : $cb->();
|
||||
$Slic3r::have_threads ? threads->create($cb)->detach : $cb->();
|
||||
}
|
||||
|
||||
sub make_thumbnail2 {
|
||||
|
||||
Reference in new issue
Block a user