Don't require parameters for the ignored args wrapper
This commit is contained in:
parent
1cc741c0c1
commit
5e40b63031
2 changed files with 4 additions and 4 deletions
|
@ -63,7 +63,7 @@ class CommandArgParser(object):
|
|||
"""
|
||||
Call the function without any argument
|
||||
"""
|
||||
def wrap(self, args, *a, **kw):
|
||||
def wrap(self, args=None, *a, **kw):
|
||||
return func(self, *a, **kw)
|
||||
return wrap
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ class XMLTab(Tab):
|
|||
self.refresh()
|
||||
except Exception as e:
|
||||
self.core.information('Invalid XML Mask: %s' % e, 'Error')
|
||||
self.command_filter_reset('')
|
||||
self.command_filter_reset()
|
||||
|
||||
@command_args_parser.raw
|
||||
def command_filter_to(self, jid):
|
||||
|
@ -216,7 +216,7 @@ class XMLTab(Tab):
|
|||
self.refresh()
|
||||
except:
|
||||
self.core.information('Invalid XML Path', 'Error')
|
||||
self.command_filter_reset('')
|
||||
self.command_filter_reset()
|
||||
|
||||
@command_args_parser.ignored
|
||||
def command_filter_reset(self):
|
||||
|
@ -349,7 +349,7 @@ class XMLTab(Tab):
|
|||
|
||||
def on_close(self):
|
||||
super().on_close()
|
||||
self.command_clear('')
|
||||
self.command_clear()
|
||||
self.core.xml_tab = False
|
||||
|
||||
def on_info_win_size_changed(self):
|
||||
|
|
Loading…
Reference in a new issue