Commit c659e49e authored by Black Hat's avatar Black Hat

Init tray support.

parent 9d99c510
......@@ -4,6 +4,7 @@ import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.2
import QtGraphicalEffects 1.0
import Qt.labs.settings 1.0
import Qt.labs.platform 1.0 as Platform
import Matrique 0.1
import "qrc:/qml/component"
......@@ -25,6 +26,17 @@ ApplicationWindow {
property alias token: matriqueController.token
}
Platform.SystemTrayIcon {
visible: true
iconSource: "qrc:/qml/asset/img/icon.png"
onActivated: {
window.show()
window.raise()
window.requestActivate()
}
}
Controller {
id: matriqueController
onErrorOccured: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment