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
2a787f66
Commit
2a787f66
authored
Oct 12, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added restart function
parent
409f9506
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
__init__.py
blink/__init__.py
+7
-0
No files found.
blink/__init__.py
View file @
2a787f66
...
@@ -96,6 +96,7 @@ class Blink(QApplication, metaclass=QSingleton):
...
@@ -96,6 +96,7 @@ class Blink(QApplication, metaclass=QSingleton):
self
.
setAttribute
(
Qt
.
AA_DontShowIconsInMenus
,
False
)
self
.
setAttribute
(
Qt
.
AA_DontShowIconsInMenus
,
False
)
self
.
sip_application
=
SIPApplication
()
self
.
sip_application
=
SIPApplication
()
self
.
first_run
=
False
self
.
first_run
=
False
self
.
reinit
=
False
self
.
setOrganizationDomain
(
"ag-projects.com"
)
self
.
setOrganizationDomain
(
"ag-projects.com"
)
self
.
setOrganizationName
(
"AG Projects"
)
self
.
setOrganizationName
(
"AG Projects"
)
...
@@ -157,12 +158,18 @@ class Blink(QApplication, metaclass=QSingleton):
...
@@ -157,12 +158,18 @@ class Blink(QApplication, metaclass=QSingleton):
self
.
sip_application
.
stop
()
self
.
sip_application
.
stop
()
self
.
sip_application
.
thread
.
join
()
self
.
sip_application
.
thread
.
join
()
self
.
log_manager
.
stop
()
self
.
log_manager
.
stop
()
if
self
.
reinit
:
os
.
execl
(
sys
.
executable
,
sys
.
executable
,
*
sys
.
argv
)
def
quit
(
self
):
def
quit
(
self
):
self
.
chat_window
.
close
()
self
.
chat_window
.
close
()
self
.
main_window
.
close
()
self
.
main_window
.
close
()
super
(
Blink
,
self
)
.
quit
()
super
(
Blink
,
self
)
.
quit
()
def
restart
(
self
):
self
.
reinit
=
True
self
.
quit
()
def
eventFilter
(
self
,
watched
,
event
):
def
eventFilter
(
self
,
watched
,
event
):
if
watched
in
(
self
.
main_window
,
self
.
chat_window
):
if
watched
in
(
self
.
main_window
,
self
.
chat_window
):
if
event
.
type
()
==
QEvent
.
Show
:
if
event
.
type
()
==
QEvent
.
Show
:
...
...
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