fix: add missing brace, clean up indentation
This commit is contained in:
parent
6494427de0
commit
62d44cb7a9
|
@ -77,39 +77,39 @@ Item {
|
||||||
chatType: root.chatType
|
chatType: root.chatType
|
||||||
identicon: root.identicon
|
identicon: root.identicon
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
timer.stop()
|
timer.stop()
|
||||||
notificationWindowSub.close()
|
notificationWindowSub.close()
|
||||||
applicationWindow.raise()
|
applicationWindow.raise()
|
||||||
chatsModel.setActiveChannel(chatId)
|
chatsModel.setActiveChannel(chatId)
|
||||||
applicationWindow.requestActivate()
|
applicationWindow.requestActivate()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: timer
|
id: timer
|
||||||
interval: 4000
|
interval: 4000
|
||||||
running: false
|
running: false
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
notificationWindowSub.close()
|
notificationWindowSub.close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
onVisibleChanged: {
|
||||||
onVisibleChanged: {
|
if (visible) {
|
||||||
if (visible) {
|
timer.running = true
|
||||||
timer.running = true
|
if (applicationWindow.active) {
|
||||||
if (applicationWindow.active) {
|
this.flags |= Qt.Popup
|
||||||
this.flags |= Qt.Popup
|
} else {
|
||||||
} else {
|
this.flags = Qt.FramelessWindowHint | Qt.WA_ShowWithoutActivating
|
||||||
this.flags = Qt.FramelessWindowHint | Qt.WA_ShowWithoutActivating
|
| Qt.WindowStaysOnTopHint | Qt.BypassWindowManagerHint
|
||||||
| Qt.WindowStaysOnTopHint | Qt.BypassWindowManagerHint
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,4 +131,3 @@ Designer {
|
||||||
D{i:0;autoSize:true;height:480;width:640}
|
D{i:0;autoSize:true;height:480;width:640}
|
||||||
}
|
}
|
||||||
##^##*/
|
##^##*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue