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
8c6c6d33
Verified
Commit
8c6c6d33
authored
10 months ago
by
Pea Nut
Browse files
Options
Downloads
Patches
Plain Diff
[DEV] Show error message - to be discussed
parent
728585c9
Branches
fix-855
No related tags found
1 merge request
!214
Improve error handling when Bitmask.Init fails, fixes #855
Pipeline
#232270
passed
10 months ago
Stage: build
Stage: package
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gui/components/StatusBox.qml
+24
-0
24 additions, 0 deletions
gui/components/StatusBox.qml
with
24 additions
and
0 deletions
gui/components/StatusBox.qml
+
24
−
0
View file @
8c6c6d33
...
...
@@ -6,8 +6,13 @@ import QtQuick.Templates as T
import
QtQuick
.
Controls
.
impl
import
QtQuick
.
Controls
.
Material
import
QtQuick
.
Controls
.
Material
.
impl
import
QtQuick
.
Dialogs
import
"
../themes/themes.js
"
as
Theme
Item
{
id
:
statusbox
anchors.fill
:
parent
...
...
@@ -22,6 +27,17 @@ Item {
}
}
MessageDialog
{
id
:
messageDialog
title
:
"
Error starting VPN
"
text
:
"
error message here...
"
onAccepted
:
{
console
.
log
(
"
And of course you could only agree.
"
)
//Qt.quit()
}
Component.onCompleted
:
visible
=
true
}
VPNState
{
id
:
vpn
}
...
...
@@ -167,6 +183,14 @@ Item {
}
else
{
console
.
debug
(
"
unknown state
"
);
}
messageDialog
.
open
();
/*
QMessageBox messageBox;
messageBox.critical(0,"Error","An error has occured !");
messageBox.setFixedSize(500,200);
messageBox.open();
*/
}
}
}
...
...
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