Completed undo/redo from a toolbar

This commit is contained in:
YuSanka 2019-07-09 20:45:00 +02:00
parent 3dd1bc753c
commit f985f5190c
3 changed files with 47 additions and 5 deletions

View file

@ -3492,7 +3492,7 @@ void GLCanvas3D::_render_undo_redo_stack(const bool is_undo, float pos_x)
if (imgui->undo_redo_list(ImVec2(12 * em, 20 * em), is_undo, &string_getter, hovered, selected))
m_toolbar.set_imgui_hovered_pos(hovered);
if (selected >= 0)
m_toolbar.hide_imgui(is_undo);
is_undo ? wxGetApp().plater()->undo_to(selected) : wxGetApp().plater()->redo_to(selected);
imgui->text(wxString::Format(_(L("%s %d Action")), stack_name, hovered + 1));