Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
bitmask-vpn
Commits
2445ac94
Unverified
Commit
2445ac94
authored
6 years ago
by
meskio
Browse files
Options
Downloads
Patches
Plain Diff
[bug] wait until the systray is initalized to start the systray loop
- Resolves:
#106
parent
00abe095
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!57
[bug] wait until the systray is initalized to start the systray loop
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/systray/run.go
+1
-1
1 addition, 1 deletion
pkg/systray/run.go
pkg/systray/systray.go
+4
-0
4 additions, 0 deletions
pkg/systray/systray.go
with
5 additions
and
1 deletion
pkg/systray/run.go
+
1
−
1
View file @
2445ac94
...
...
@@ -24,7 +24,7 @@ import (
)
func
Run
(
conf
*
Config
)
{
bt
:=
bmTray
{
conf
:
conf
}
bt
:=
bmTray
{
conf
:
conf
,
waitCh
:
make
(
chan
bool
)
}
go
initialize
(
conf
,
&
bt
)
bt
.
start
()
}
...
...
This diff is collapsed.
Click to expand it.
pkg/systray/systray.go
+
4
−
0
View file @
2445ac94
...
...
@@ -83,9 +83,13 @@ func (bt *bmTray) onReady() {
systray
.
AddSeparator
()
bt
.
mQuit
=
systray
.
AddMenuItem
(
printer
.
Sprintf
(
"Quit"
),
""
)
bt
.
waitCh
<-
true
}
func
(
bt
*
bmTray
)
loop
(
bm
bitmask
.
Bitmask
,
notify
*
notificator
,
as
bitmask
.
Autostart
)
{
<-
bt
.
waitCh
bt
.
waitCh
=
nil
bt
.
bm
=
bm
bt
.
notify
=
notify
bt
.
autostart
=
as
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment