From fa41211ccae24d75e940721bae68d3abe7f2e1ee Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 10 Dec 2022 13:11:49 +0100 Subject: FLUID event handling and UI changes (#575) * Full support o when() * Making undo suspend nesting * Finally correct undo handling for Label: input * Documentation. * Adding more undo checkpoints for the Widget Panel * Quick selection of default user_data types * Pulldown menu for system colors * Make sure that partially typed text fields are propagated before saving --- fluid/undo.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/undo.cxx') diff --git a/fluid/undo.cxx b/fluid/undo.cxx index 4f0b18cec..0e8da0fc8 100644 --- a/fluid/undo.cxx +++ b/fluid/undo.cxx @@ -207,10 +207,10 @@ void undo_clear() { // Resume undo checkpoints void undo_resume() { - undo_paused = 0; + undo_paused--; } // Suspend undo checkpoints void undo_suspend() { - undo_paused = 1; + undo_paused++; } -- cgit v1.2.3