diff options
Diffstat (limited to 'gui/qml/main.qml')
-rw-r--r-- | gui/qml/main.qml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml index cc984f0..5ea3c27 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -1,12 +1,11 @@ import QtQuick 2.9 -import QtQuick.Window 2.2 -import QtQuick.Dialogs 1.2 +import QtQuick.Dialogs 1.2 // TODO use native dialogs in labs.platform import QtQuick.Layouts 1.12 -import QtQuick.Controls 2.12 +import QtQuick.Controls 2.4 import Qt.labs.platform 1.0 -Window { +ApplicationWindow { id: app visible: true width: 500 @@ -20,6 +19,11 @@ Window { property var loginDone property var allowEmptyPass + onSceneGraphError: function(error, msg) { + console.debug("ERROR while initializing scene") + console.debug(msg) + } + // TODO get a nice background color for this mainwindow. It should be customizable. // TODO refactorize all this mess into discrete components. TabBar { @@ -165,6 +169,7 @@ Window { backend.useLocation(currentText.toString()) } + delegate: ItemDelegate { // TODO: we could use icons // https://doc.qt.io/qt-5/qml-qtquick-controls2-abstractbutton.html#icon-prop @@ -482,10 +487,10 @@ Window { systray.icon.source = icons["off"] tooltip = qsTr("Checking status…") console.debug("systray init completed") - hide() + //hide() if (systrayVisible) { console.log("show systray") - show() + //show() if (Qt.platform.os === "windows") { let appname = ctx ? ctx.appName : "VPN" showNotification( |