fix Gajim startup when bonjour is not available.
This commit is contained in:
parent
8946a2f898
commit
c6dffb8864
|
@ -5952,8 +5952,12 @@ class RosterWindow:
|
||||||
gajim.config.set('show_roster_on_startup', True)
|
gajim.config.set('show_roster_on_startup', True)
|
||||||
|
|
||||||
if len(gajim.connections) == 0: # if we have no account
|
if len(gajim.connections) == 0: # if we have no account
|
||||||
|
def _open_wizard():
|
||||||
gajim.interface.instances['account_creation_wizard'] = \
|
gajim.interface.instances['account_creation_wizard'] = \
|
||||||
config.AccountCreationWizardWindow()
|
config.AccountCreationWizardWindow()
|
||||||
|
# Open wizard only after roster is created, so we can make it transient
|
||||||
|
# for the roster window
|
||||||
|
gobject.idle_add(_open_wizard)
|
||||||
if not gajim.ZEROCONF_ACC_NAME in gajim.config.get_per('accounts'):
|
if not gajim.ZEROCONF_ACC_NAME in gajim.config.get_per('accounts'):
|
||||||
# Create zeroconf in config file
|
# Create zeroconf in config file
|
||||||
from common.zeroconf import connection_zeroconf
|
from common.zeroconf import connection_zeroconf
|
||||||
|
|
Loading…
Reference in New Issue