Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
aa5ae0d9
Commit
aa5ae0d9
authored
Aug 12, 2010
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only show account wizard on first run or if there are no accounts at all
parent
d2a82516
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
__init__.py
blink/__init__.py
+4
-1
No files found.
blink/__init__.py
View file @
aa5ae0d9
...
...
@@ -68,6 +68,7 @@ class Blink(QApplication):
super
(
Blink
,
self
)
.
__init__
(
sys
.
argv
)
self
.
application
=
SIPApplication
()
self
.
auxiliary_thread
=
AuxiliaryThread
()
self
.
first_run
=
False
self
.
main_window
=
MainWindow
()
self
.
update_manager
=
UpdateManager
()
...
...
@@ -189,12 +190,14 @@ class Blink(QApplication):
def
_NH_SIPApplicationDidStart
(
self
,
notification
):
account_manager
=
AccountManager
()
self
.
fetch_account
()
if
account_manager
.
get_accounts
()
==
[
BonjourAccount
()]
:
if
account_manager
.
get_accounts
()
==
[
]
or
(
self
.
first_run
and
account_manager
.
get_accounts
()
==
[
BonjourAccount
()])
:
self
.
main_window
.
add_account_dialog
.
open_for_create
()
self
.
main_window
.
show
()
self
.
update_manager
.
initialize
()
def
_initialize_sipsimple
(
self
):
if
not
os
.
path
.
exists
(
ApplicationData
.
get
(
'config'
)):
self
.
first_run
=
True
notification_center
=
NotificationCenter
()
notification_center
.
add_observer
(
self
,
sender
=
self
.
application
)
self
.
application
.
start
(
FileBackend
(
ApplicationData
.
get
(
'config'
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment