Skip to content

Commit

Permalink
Rearrange clipboard options in right click menu
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Nov 29, 2024
1 parent d9339ba commit d468f1a
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,18 +718,6 @@ class NodeEditor(val paperVision: PaperVision, private val keyManager: KeyManage
override fun drawContents() {
ImGui.pushStyleColor(ImGuiCol.Button, 0)

if (ImGui.button("Undo")) {
undo()
ImGui.closeCurrentPopup()
}

if (ImGui.button("Redo")) {
redo()
ImGui.closeCurrentPopup()
}

ImGui.separator()

if(ImGui.button("Cut")) {
cut(selection.filter { it is Node<*> }.map { it as Node<*> })
ImGui.closeCurrentPopup()
Expand All @@ -747,6 +735,18 @@ class NodeEditor(val paperVision: PaperVision, private val keyManager: KeyManage

ImGui.separator()

if (ImGui.button("Undo")) {
undo()
ImGui.closeCurrentPopup()
}

if (ImGui.button("Redo")) {
redo()
ImGui.closeCurrentPopup()
}

ImGui.separator()

if (selection.isNotEmpty()) {
if (ImGui.button("Delete")) {
selection.find { it is Node<*> }?.let {
Expand Down

0 comments on commit d468f1a

Please sign in to comment.