Skip to content

Commit a489bdb

Browse files
committed
More work on undo
1 parent 10e7293 commit a489bdb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

plugins/core-plugin.cc

+10-4
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ namespace clap {
149149
} catch (...) {
150150
return false;
151151
}
152+
153+
#ifndef CLAP_PLUGINS_HEADLESS
154+
if (_guiHandle)
155+
guiPopulateProperties();
156+
#endif
157+
152158
return true;
153159
}
154160

@@ -967,8 +973,8 @@ namespace clap {
967973

968974
void CorePlugin::undoSetUndoName(const char *name) noexcept {
969975
if (name && *name) {
970-
if (!_canUndo)
971-
hostMisbehaving("set undo name while it isn't possible to undo");
976+
// if (!_canUndo)
977+
// hostMisbehaving("set undo name while it isn't possible to undo");
972978
_undoName = name;
973979
} else
974980
_undoName.reset();
@@ -981,8 +987,8 @@ namespace clap {
981987

982988
void CorePlugin::undoSetRedoName(const char *name) noexcept {
983989
if (name && *name) {
984-
if (!_canRedo)
985-
hostMisbehaving("set undo name while it isn't possible to redo");
990+
// if (!_canRedo)
991+
// hostMisbehaving("set undo name while it isn't possible to redo");
986992
_redoName = name;
987993
} else
988994
_redoName.reset();

0 commit comments

Comments
 (0)