mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-21 20:09:37 +00:00
show app on systray
This commit is contained in:
parent
5c3b240cef
commit
122d102294
12
main.qml
12
main.qml
@ -2,6 +2,7 @@ import QtQuick 2.3
|
||||
import QtQuick.Controls 1.3
|
||||
import QtQuick.Controls 2.3
|
||||
import QtQuick.Layouts 1.3
|
||||
import Qt.labs.platform 1.1
|
||||
import "./imports"
|
||||
|
||||
ApplicationWindow {
|
||||
@ -11,6 +12,17 @@ ApplicationWindow {
|
||||
title: "Nim Status Client"
|
||||
visible: true
|
||||
|
||||
SystemTrayIcon {
|
||||
visible: true
|
||||
icon.source: "status-logo.png"
|
||||
|
||||
onActivated: {
|
||||
applicationWindow.show()
|
||||
applicationWindow.raise()
|
||||
applicationWindow.requestActivate()
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
id: rowLayout
|
||||
width: parent.width
|
||||
|
BIN
status-logo.png
Normal file
BIN
status-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
Loading…
x
Reference in New Issue
Block a user