From 441d87f452e523efec3eaad036ae50569f19abfd Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Tue, 17 Sep 2024 16:02:31 +0200 Subject: [PATCH] Make it easier for now regarding the undo names set order --- plugins/core-plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/core-plugin.cc b/plugins/core-plugin.cc index 1b39a4d..c5e48b2 100644 --- a/plugins/core-plugin.cc +++ b/plugins/core-plugin.cc @@ -973,7 +973,7 @@ namespace clap { void CorePlugin::undoSetUndoName(const char *name) noexcept { if (name && *name) { - if (!_canUndo) + if (!_canUndo && false) hostMisbehaving("set undo name while it isn't possible to undo"); _undoName = name; } else @@ -987,7 +987,7 @@ namespace clap { void CorePlugin::undoSetRedoName(const char *name) noexcept { if (name && *name) { - if (!_canRedo) + if (!_canRedo && false) hostMisbehaving("set undo name while it isn't possible to redo"); _redoName = name; } else