mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Added undo-redo to locking of sources.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user