Browse Source

Make history::ModuleMove use RackWidget::requestModulePos() so it updates expanders.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
6e0507f0f8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/history.cpp

+ 2
- 2
src/history.cpp View File

@@ -81,14 +81,14 @@ void ModuleMove::undo() {
app::ModuleWidget* mw = APP->scene->rack->getModule(moduleId);
if (!mw)
return;
mw->box.pos = oldPos;
APP->scene->rack->requestModulePos(mw, oldPos);
}

void ModuleMove::redo() {
app::ModuleWidget* mw = APP->scene->rack->getModule(moduleId);
if (!mw)
return;
mw->box.pos = newPos;
APP->scene->rack->requestModulePos(mw, newPos);
}




Loading…
Cancel
Save