mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Prevent action on source after locking it from side panel
This commit is contained in:
@@ -441,8 +441,13 @@ void ImGuiVisitor::visit (Source& s)
|
|||||||
ImGui::SetCursorPos( ImVec2(preview_width + 20, pos.y + 2.f * ImGui::GetFrameHeightWithSpacing()) );
|
ImGui::SetCursorPos( ImVec2(preview_width + 20, pos.y + 2.f * ImGui::GetFrameHeightWithSpacing()) );
|
||||||
const char *tooltip[2] = {"Unlocked", "Locked"};
|
const char *tooltip[2] = {"Unlocked", "Locked"};
|
||||||
bool l = s.locked();
|
bool l = s.locked();
|
||||||
if (ImGuiToolkit::IconToggle(15,6,17,6, &l, tooltip ) )
|
if (ImGuiToolkit::IconToggle(15,6,17,6, &l, tooltip ) ) {
|
||||||
s.setLocked(l);
|
s.setLocked(l);
|
||||||
|
if (l)
|
||||||
|
Mixer::selection().clear();
|
||||||
|
else
|
||||||
|
Mixer::selection().set(&s);
|
||||||
|
}
|
||||||
|
|
||||||
// toggle enable/disable image processing
|
// toggle enable/disable image processing
|
||||||
bool on = s.imageProcessingEnabled();
|
bool on = s.imageProcessingEnabled();
|
||||||
|
|||||||
Reference in New Issue
Block a user