Hide protocol combobox when adding contacts if only XMPP is available
This commit is contained in:
parent
8e144e46f8
commit
17ae4e4ccc
1 changed files with 3 additions and 0 deletions
|
@ -1017,6 +1017,9 @@ class AddNewContactWindow:
|
||||||
self.account_combobox.set_model(liststore)
|
self.account_combobox.set_model(liststore)
|
||||||
self.account_combobox.set_active(0)
|
self.account_combobox.set_active(0)
|
||||||
|
|
||||||
|
if len(self.agents) == 1:
|
||||||
|
self.protocol_hbox.hide()
|
||||||
|
|
||||||
if self.account:
|
if self.account:
|
||||||
message_buffer = self.message_textview.get_buffer()
|
message_buffer = self.message_textview.get_buffer()
|
||||||
msg = helpers.from_one_line(helpers.get_subscription_request_msg(
|
msg = helpers.from_one_line(helpers.get_subscription_request_msg(
|
||||||
|
|
Loading…
Add table
Reference in a new issue