Skip to content

Commit

Permalink
Make it easier for now regarding the undo names set order
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 17, 2024
1 parent fe375a1 commit 441d87f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/core-plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 441d87f

Please sign in to comment.