mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-03 20:50:36 +08:00
Minor fix to prevent the Cancel button from showing when there are no objects
This commit is contained in:
parent
9e6b869bd4
commit
c2fecf7c70
@ -1343,9 +1343,13 @@ sub start_background_process {
|
|||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
|
|
||||||
return if !$Slic3r::have_threads;
|
return if !$Slic3r::have_threads;
|
||||||
return if !@{$self->{objects}};
|
|
||||||
return if $self->{process_thread};
|
return if $self->{process_thread};
|
||||||
|
|
||||||
|
if (!@{$self->{objects}}) {
|
||||||
|
$self->on_process_completed;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
# It looks like declaring a local $SIG{__WARN__} prevents the ugly
|
# It looks like declaring a local $SIG{__WARN__} prevents the ugly
|
||||||
# "Attempt to free unreferenced scalar" warning...
|
# "Attempt to free unreferenced scalar" warning...
|
||||||
local $SIG{__WARN__} = Slic3r::GUI::warning_catcher($self);
|
local $SIG{__WARN__} = Slic3r::GUI::warning_catcher($self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user