From bf1269e525606f95e3dde9e93c8fc908a7ae4153 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 8 Jul 2020 12:42:10 +0200 Subject: [PATCH] arb:: undo in connection debugger --- arbitrile.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arbitrile.cpp b/arbitrile.cpp index 8713211a..87e441ee 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -543,6 +543,12 @@ void connection_debugger() { }); } + + dialog::addItem("undo", 'u'); + dialog::add_action([] { + if(isize(debug_polys) > 1) + debug_polys.pop_back(); + }); dialog::addBack(); dialog::display();