typo
This commit is contained in:
parent
b21e2882c8
commit
8301700501
|
@ -288,11 +288,11 @@ class MessageWindow:
|
|||
ctrl_page = self.notebook.page_num(ctrl.widget)
|
||||
self.notebook.set_current_page(ctrl_page)
|
||||
|
||||
def remove_tab(self, ctrl, mothod, reason = None, force = False):
|
||||
def remove_tab(self, ctrl, method, reason = None, force = False):
|
||||
'''reason is only for gc (offline status message)
|
||||
if force is True, do not ask any confirmation'''
|
||||
# Shutdown the MessageControl
|
||||
if not force and not ctrl.allow_shutdown(mothod):
|
||||
if not force and not ctrl.allow_shutdown(method):
|
||||
return
|
||||
if reason is not None: # We are leaving gc with a status message
|
||||
ctrl.shutdown(reason)
|
||||
|
|
Loading…
Reference in New Issue