ENH: update the focus to the new plate when creating

Change-Id: Id7ea18274865966a2e9f89ff0b2eb9799de8e19f
(cherry picked from commit 3e13db7f0a2b29201f76b4721259fc2829abe68c)
This commit is contained in:
lane.wei 2023-02-16 14:19:34 +08:00 committed by Lane.Wei
parent fc96370abe
commit 21a4b30e1b
1 changed files with 2 additions and 0 deletions

View File

@ -6028,6 +6028,8 @@ void Plater::priv::on_action_add_plate(SimpleEvent&)
if (q != nullptr) {
take_snapshot("add partplate");
this->partplate_list.create_plate();
int new_plate = this->partplate_list.get_plate_count() - 1;
this->partplate_list.select_plate(new_plate);
update();
// BBS set default view