Skip to content

Commit

Permalink
Re-enable the host misbehaving
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 17, 2024
1 parent a489bdb commit e3ea8df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/core-plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,8 @@ namespace clap {

void CorePlugin::undoSetUndoName(const char *name) noexcept {
if (name && *name) {
// if (!_canUndo)
// hostMisbehaving("set undo name while it isn't possible to undo");
if (!_canUndo)
hostMisbehaving("set undo name while it isn't possible to undo");
_undoName = name;
} else
_undoName.reset();
Expand All @@ -987,8 +987,8 @@ namespace clap {

void CorePlugin::undoSetRedoName(const char *name) noexcept {
if (name && *name) {
// if (!_canRedo)
// hostMisbehaving("set undo name while it isn't possible to redo");
if (!_canRedo)
hostMisbehaving("set undo name while it isn't possible to redo");
_redoName = name;
} else
_redoName.reset();
Expand Down

0 comments on commit e3ea8df

Please sign in to comment.