mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-02 11:50:39 +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) = @_;
|
||||
|
||||
return if !$Slic3r::have_threads;
|
||||
return if !@{$self->{objects}};
|
||||
return if $self->{process_thread};
|
||||
|
||||
if (!@{$self->{objects}}) {
|
||||
$self->on_process_completed;
|
||||
return;
|
||||
}
|
||||
|
||||
# It looks like declaring a local $SIG{__WARN__} prevents the ugly
|
||||
# "Attempt to free unreferenced scalar" warning...
|
||||
local $SIG{__WARN__} = Slic3r::GUI::warning_catcher($self);
|
||||
|
Loading…
x
Reference in New Issue
Block a user