Timeline: per-frame work runs once, not once per row
Escape, the context menu (and its shortcuts), frame resize drags and the frame-move drop now run once from frames_child instead of inside every row's child. draw() hands popups and global shortcuts to popups_update() and shortcuts_update(). Drops a dead style push/pop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
146e5d4ff1
commit
69e78ff77a
6 files changed
+168
-155
No files matched your search
@@ -153,7 +153,8 @@ namespace anm2ed::imgui
|
||||
actions.add(ACTION_CUT, [=, this]() { return !selectedFrames.empty(); }, [this]() { cut(); });
|
||||
actions.add(ACTION_COPY, [=, this]() { return !copyFrames.empty(); }, [this]() { copy(); });
|
||||
actions.add(ACTION_PASTE, [&]() { return !clipboard.is_empty(); }, [this]() { paste(); });
|
||||
actions_context_window_draw("##Context Menu", actions, settings);
|
||||
actions_context_window_draw("##Context Menu", actions, settings, ImGuiPopupFlags_MouseButtonRight,
|
||||
ImGuiHoveredFlags_ChildWindows);
|
||||
|
||||
ImGui::PopStyleVar(2);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user