X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fplugin%2Fcommand_stack.py;h=b5c987cdc94632c4ce2c5358e4ccb0ce1e69c3da;hp=8a3ecb829c6d8527224a7b779e860356b91303c4;hb=52c4e278936755f9e8e9bfb00ea4e995bda6847a;hpb=8d6a75ff86d64451d3a206ee4889c7c5b0a83c54 diff --git a/hooke/plugin/command_stack.py b/hooke/plugin/command_stack.py index 8a3ecb8..b5c987c 100644 --- a/hooke/plugin/command_stack.py +++ b/hooke/plugin/command_stack.py @@ -81,7 +81,8 @@ class CaptureCommand (CommandStackCommand): return assert isinstance(msg, CommandMessage), type(msg) cmd = hooke.command_by_name[msg.command] - if isinstance(cmd, CommandStackCommand): + if (cmd.explicit_user_call == False + or isinstance(cmd, CommandStackCommand)): if isinstance(cmd, StopCaptureCommand): outqueue = Queue() # Grab StopCaptureCommand's completion. cmd.run(hooke, inqueue, outqueue, **msg.arguments) @@ -282,8 +283,6 @@ current stack. """.strip()), ], help=self.__doc__, plugin=plugin) - stack = [a for a in self.arguments if a.name == 'stack'][0] - stack.default = False def _run(self, hooke, inqueue, outqueue, params): params = self.__setup_params(hooke=hooke, params=params)