Add an /unlock command to manually unlock a DynamicConversationTab.
This commit is contained in:
parent
dd2a6d1d65
commit
d6fec9775a
1 changed files with 6 additions and 0 deletions
|
@ -3194,6 +3194,8 @@ class DynamicConversationTab(ConversationTab):
|
|||
self.lock(resource)
|
||||
self.info_header = windows.DynamicConversationInfoWin()
|
||||
ConversationTab.__init__(self, jid)
|
||||
self.register_command('unlock', self.unlock_command,
|
||||
shortdesc=_('Unlock the converstation from a particular resource.'))
|
||||
|
||||
def lock(self, resource):
|
||||
"""
|
||||
|
@ -3202,6 +3204,10 @@ class DynamicConversationTab(ConversationTab):
|
|||
assert(resource)
|
||||
self.locked_resource = resource
|
||||
|
||||
def unlock_command(self, arg=None):
|
||||
self.unlock()
|
||||
self.refresh_info_header()
|
||||
|
||||
def unlock(self):
|
||||
"""
|
||||
Unlock the tab from a resource. It is now “associated” with the bare
|
||||
|
|
Loading…
Reference in a new issue