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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Vladimir KozLove
bitmask-vpn
Commits
aa7b3794
Commit
aa7b3794
authored
4 years ago
by
Kali Kaneko
Browse files
Options
Downloads
Patches
Plain Diff
undo qualified namespace
parent
74bffa3b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+2
-0
2 additions, 0 deletions
Makefile
gui/qml/FailDialog.qml
+2
-1
2 additions, 1 deletion
gui/qml/FailDialog.qml
gui/qml/main.qml
+72
-18
72 additions, 18 deletions
gui/qml/main.qml
with
76 additions
and
19 deletions
Makefile
+
2
−
0
View file @
aa7b3794
...
...
@@ -377,6 +377,8 @@ endif
#########################################################################
# packaging action
#########################################################################
run
:
./build/qt/release/riseup-vpn
builder_image
:
@
make
-C
docker build
...
...
This diff is collapsed.
Click to expand it.
gui/qml/FailDialog.qml
+
2
−
1
View file @
aa7b3794
...
...
@@ -16,7 +16,8 @@ MessageDialog {
if
(
ctx
.
loginDialog
==
'
true
'
)
{
login
.
visible
=
true
}
else
{
// FIXME - we probably want to distinguish
// FIXME - we probably want to distinguish
// fatal from recoverable errors. For the time being
// we can avoid quitting so that people can try reconnects if it's
// a network problem, it's confusing to quit the app.
...
...
This diff is collapsed.
Click to expand it.
gui/qml/main.qml
+
72
−
18
View file @
aa7b3794
import
QtQuick
2.9
import
QtQuick
.
Controls
1.4
import
QtQuick
.
Window
2.2
import
QtQuick
.
Dialogs
1.2
import
QtQuick
.
Layouts
1.0
import
QtQuick
.
Extras
1.2
import
Qt
.
labs
.
platform
1.1
as
LabsPlatform
import
QtQuick
.
Controls
1.4
ApplicationWindow
{
//import QtQuick.Extras 1.2
import
Qt
.
labs
.
platform
1.0
//as LabsPlatform
Window
{
id
:
app
visible
:
true
width
:
300
...
...
@@ -229,7 +230,7 @@ ApplicationWindow {
id
:
vpn
}
LabsPlatform.
SystemTrayIcon
{
SystemTrayIcon
{
id
:
systray
visible
:
systrayVisible
...
...
@@ -239,7 +240,12 @@ ApplicationWindow {
systray
.
activatedSignal
()
}
menu
:
LabsPlatform.Menu
{
/* the systray menu cannot be buried in a child qml file because
* otherwise the ids are not available
* from other components
*/
menu
:
Menu
{
id
:
systrayMenu
...
...
@@ -253,13 +259,61 @@ ApplicationWindow {
}
}
LabsPlatform.
MenuItem
{
MenuItem
{
id
:
statusItem
text
:
qsTr
(
"
Checking status…
"
)
enabled
:
false
}
LabsPlatform.MenuItem
{
MenuItem
{
id
:
autoSelectionItem
text
:
qsTr
(
"
automatic
"
)
checkable
:
true
checked
:
true
enabled
:
false
}
/* a minimal segfault for submenu */
// Menu {}
/* this segfaults too (but it's the way to do dynamic item creation */
/*
Menu {
id: manualGatewaysSubmenu
title: qsTr("Manual Gateways")
enabled: true
Instantiator {
id: manualGatewayInstantiator
//model: settings.recentFiles
delegate: MenuItem {
text: "test gateway"
}
onObjectAdded: manualGatewaysSubmenu.insertItem(index, object)
onObjectRemoved: manualGatewaysSubmenu.removeItem(object)
}
MenuSeparator {}
}
*/
MenuSeparator
{}
MenuItem
{
id
:
manualSelectionItem
text
:
qsTr
(
"
Pick gateway…
"
)
checkable
:
true
checked
:
false
enabled
:
true
}
MenuSeparator
{}
MenuItem
{
text
:
{
if
(
vpn
.
state
==
"
failed
"
)
qsTr
(
"
Reconnect
"
)
...
...
@@ -273,7 +327,7 @@ ApplicationWindow {
||
ctx
.
status
==
"
failed
"
)
:
false
}
LabsPlatform.
MenuItem
{
MenuItem
{
text
:
{
if
(
ctx
&&
ctx
.
status
==
"
starting
"
)
qsTr
(
"
Cancel
"
)
...
...
@@ -287,9 +341,9 @@ ApplicationWindow {
||
ctx
.
status
==
"
failed
"
)
:
false
}
LabsPlatform.
MenuSeparator
{}
MenuSeparator
{}
LabsPlatform.
MenuItem
{
MenuItem
{
text
:
qsTr
(
"
About…
"
)
onTriggered
:
{
about
.
visible
=
true
...
...
@@ -298,7 +352,7 @@ ApplicationWindow {
}
}
LabsPlatform.
MenuItem
{
MenuItem
{
id
:
donateItem
text
:
qsTr
(
"
Donate…
"
)
visible
:
ctx
?
ctx
.
donateURL
:
false
...
...
@@ -307,9 +361,9 @@ ApplicationWindow {
}
}
LabsPlatform.
MenuSeparator
{}
MenuSeparator
{}
LabsPlatform.
MenuItem
{
MenuItem
{
text
:
qsTr
(
"
Help…
"
)
onTriggered
:
{
...
...
@@ -318,7 +372,7 @@ ApplicationWindow {
}
}
LabsPlatform.
MenuItem
{
MenuItem
{
text
:
qsTr
(
"
Report a bug…
"
)
onTriggered
:
{
...
...
@@ -328,9 +382,9 @@ ApplicationWindow {
}
}
LabsPlatform.
MenuSeparator
{}
MenuSeparator
{}
LabsPlatform.
MenuItem
{
MenuItem
{
text
:
qsTr
(
"
Quit
"
)
onTriggered
:
backend
.
quit
()
}
...
...
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