whiteboard plugin. small optimization
This commit is contained in:
parent
08e00fffc2
commit
e036cf91d3
1 changed files with 4 additions and 6 deletions
|
@ -341,12 +341,10 @@ class Base(object):
|
||||||
if not self.whiteboard:
|
if not self.whiteboard:
|
||||||
return
|
return
|
||||||
hbox = self.chat_control.xml.get_object('chat_control_hbox')
|
hbox = self.chat_control.xml.get_object('chat_control_hbox')
|
||||||
for child in hbox.get_children():
|
if self.whiteboard.hbox in hbox.get_children():
|
||||||
if child == self.whiteboard.hbox:
|
self.button.set_active(False)
|
||||||
self.button.set_active(False)
|
hbox.remove(self.whiteboard.hbox)
|
||||||
hbox.remove(child)
|
self.whiteboard = None
|
||||||
self.whiteboard = None
|
|
||||||
break
|
|
||||||
|
|
||||||
def disconnect_from_chat_control(self):
|
def disconnect_from_chat_control(self):
|
||||||
actions_hbox = self.chat_control.xml.get_object('actions_hbox')
|
actions_hbox = self.chat_control.xml.get_object('actions_hbox')
|
||||||
|
|
Loading…
Add table
Reference in a new issue