Skip to content

Commit

Permalink
ui: Chat window doesn't always flash (Win) ricochet-im#114
Browse files Browse the repository at this point in the history
On Windows a chat window in the background sometimes doesn't notify the
user about new messages. It seems, that this is caused by the alert
of an already active window. Thus checking if the window hasn't already
active focus prevents above mentioned behavior.
  • Loading branch information
jnodev committed Oct 11, 2014
1 parent 46ac87a commit dfb1f09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/qml/ChatWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ ApplicationWindow {
Connections {
target: contact
onIncomingChatMessage: {
chatWindow.alert(0)
if (!chatPage.activeFocus)
chatWindow.alert(0)
}
}

Expand Down

0 comments on commit dfb1f09

Please sign in to comment.