Skip to content

Commit

Permalink
Seems like I stated it using the wrong revision of clap
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed May 4, 2024
1 parent 9ea5331 commit 53d3b06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/clap/helpers/host-proxy.hh
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ namespace clap { namespace helpers {
size_t undo_delta_size) const noexcept;
void undoUndo(const clap_host_t *host) const noexcept;
void undoRedo(const clap_host_t *host) const noexcept;
void undoSetWantsContextInfo(const clap_host_t *host, bool wants_info) const noexcept;
void undoSetContextInfoSubscription(const clap_host_t *host, bool wants_info) const noexcept;

protected:
void ensureMainThread(const char *method) const noexcept;
Expand Down
8 changes: 4 additions & 4 deletions include/clap/helpers/host-proxy.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ namespace clap { namespace helpers {
return false;

if (_hostUndo->begin_change && _hostUndo->cancel_change && _hostUndo->change_made &&
_hostUndo->undo && _hostUndo->redo && _hostUndo->set_wants_context_info)
_hostUndo->undo && _hostUndo->redo && _hostUndo->set_context_info_subscription)
return true;

return false;
Expand Down Expand Up @@ -738,11 +738,11 @@ namespace clap { namespace helpers {
}

template <MisbehaviourHandler h, CheckingLevel l>
void HostProxy<h, l>::undoSetWantsContextInfo(const clap_host_t *host,
void HostProxy<h, l>::undoSetContextInfoSubscription(const clap_host_t *host,
bool wants_info) const noexcept {
assert(canUseUndo());
ensureMainThread("undo.set_wants_context_info");
_hostUndo->set_wants_context_info(_host, wants_info);
ensureMainThread("undo.set_context_info_subscription");
_hostUndo->set_context_info_subscription(_host, wants_info);
}

}} // namespace clap::helpers

0 comments on commit 53d3b06

Please sign in to comment.