Clear inline suggestions when none are present

This commit is contained in:
iovxw 2026-01-27 23:22:33 +08:00
parent 215dd14054
commit faeb74d703
No known key found for this signature in database
GPG Key ID: C84626C2D3D79995

View File

@ -421,6 +421,8 @@ class KawaiiBarComponent : UniqueViewComponent<KawaiiBarComponent, FrameLayout>(
val suggestions = response.inlineSuggestions
if (suggestions.isEmpty()) {
isInlineSuggestionPresent = false
evalIdleUiState()
idleUi.inlineSuggestionsBar.clear()
return true
}
var pinned: InlineSuggestion? = null