mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-06-07 22:38:52 +00:00
Editor: Fix lag
This commit is contained in:
parent
a8f8933e11
commit
d9f115ba67
1 changed files with 10 additions and 5 deletions
|
@ -591,6 +591,10 @@ extension StatusEditor {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func resetAutoCompletion() {
|
private func resetAutoCompletion() {
|
||||||
|
if !tagsSuggestions.isEmpty ||
|
||||||
|
!mentionsSuggestions.isEmpty ||
|
||||||
|
currentSuggestionRange != nil ||
|
||||||
|
showRecentsTagsInline {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
tagsSuggestions = []
|
tagsSuggestions = []
|
||||||
mentionsSuggestions = []
|
mentionsSuggestions = []
|
||||||
|
@ -598,6 +602,7 @@ extension StatusEditor {
|
||||||
showRecentsTagsInline = false
|
showRecentsTagsInline = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func selectMentionSuggestion(account: Account) {
|
func selectMentionSuggestion(account: Account) {
|
||||||
if let range = currentSuggestionRange {
|
if let range = currentSuggestionRange {
|
||||||
|
|
Loading…
Reference in a new issue