mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 23:19:06 +02:00
A redundant high-level GuardedCall around macro command execution...
... Redundant with the guard already in ApplyAndSendResponse, but this makes it easier to reason about the exception safety of calls into Audacity from Nyquist tools.
This commit is contained in:
parent
4710d69f4c
commit
7c924012fb
@ -53,7 +53,10 @@ void CommandHandler::OnReceiveCommand(AppCommandEvent &event)
|
||||
// Then apply it to current application & project. Note that the
|
||||
// command may change the context - for example, switching to a
|
||||
// different project.
|
||||
cmd->Apply(*mCurrentContext);
|
||||
auto result = GuardedCall<bool>( [&] {
|
||||
return cmd->Apply(*mCurrentContext);
|
||||
});
|
||||
wxUnusedVar(result);
|
||||
|
||||
// Redraw the project
|
||||
mCurrentContext->GetProject()->RedrawProject();
|
||||
|
Loading…
x
Reference in New Issue
Block a user