mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 22:35:51 +08:00
Correctly enable bulk export even if some print statuses are invalid
This commit is contained in:
parent
6001759e6c
commit
0f6c90ab3b
@ -4089,13 +4089,15 @@ void Plater::priv::show_autoslicing_action_buttons() const {
|
||||
sidebar->Layout();
|
||||
}
|
||||
|
||||
const bool all_finished{std::all_of(
|
||||
this->fff_prints.begin(),
|
||||
this->fff_prints.end(),
|
||||
[](const std::unique_ptr<Print> &print){
|
||||
return print->finished() || print->empty();
|
||||
bool all_finished{true};
|
||||
for (std::size_t bed_index{}; bed_index < s_multiple_beds.get_number_of_beds(); ++bed_index) {
|
||||
const std::unique_ptr<Print> &print{this->fff_prints[bed_index]};
|
||||
if (!print->finished() && is_sliceable(s_print_statuses[bed_index])) {
|
||||
all_finished = false;
|
||||
break;
|
||||
}
|
||||
)};
|
||||
}
|
||||
|
||||
sidebar->enable_bulk_buttons(all_finished);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user