Skip to content

Commit

Permalink
Do not update suggestions without input change
Browse files Browse the repository at this point in the history
  • Loading branch information
Top-Ranger committed Mar 15, 2017
1 parent 498a773 commit 85ac9df
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions qml/pages/Add.qml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,15 @@ Page {
id: search_timer
repeat: false
interval: 750

property string lastWord: ""

onTriggered: {
functions.filter_list(word.text)
var newWord = word.text.trim()
if(newWord !== lastWord) {
lastWord = newWord
functions.filter_list(newWord)
}
}
}

Expand Down Expand Up @@ -206,4 +213,3 @@ Page {
text: qsTr("Can not set priority")
}
}

0 comments on commit 85ac9df

Please sign in to comment.