Added undo-redo to locking of sources.

This commit is contained in:
brunoherbelin
2021-03-18 21:56:06 +01:00
parent ac5e885fb3
commit 09f052a5d6
7 changed files with 31 additions and 12 deletions

View File

@@ -443,10 +443,14 @@ void ImGuiVisitor::visit (Source& s)
bool l = s.locked();
if (ImGuiToolkit::IconToggle(15,6,17,6, &l, tooltip ) ) {
s.setLocked(l);
if (l)
if (l) {
Mixer::selection().clear();
else
Action::manager().store(s.name() + std::string(" lock."), s.id());
}
else {
Mixer::selection().set(&s);
Action::manager().store(s.name() + std::string(" unlock."), s.id());
}
}
// toggle enable/disable image processing