-
-
Notifications
You must be signed in to change notification settings - Fork 392
Closed
Labels
Dev branch onlyAn issue or fix for the Dev branch buildAn issue or fix for the Dev branch build
Description
Issue in codes
This issue is related to these codes:
Flow.Launcher/Flow.Launcher/ViewModel/MainViewModel.cs
Lines 1539 to 1558 in 6799b87
private void RemoveOldQueryResults(Query query, bool isHomeQuery) | |
{ | |
// If last and current query are home query, we don't need to clear the results | |
if (_lastIsHomeQuery && isHomeQuery) | |
{ | |
return; | |
} | |
// If last or current query is home query, we need to clear the results | |
else if (_lastIsHomeQuery || isHomeQuery) | |
{ | |
App.API.LogDebug(ClassName, $"Remove old results"); | |
Results.Clear(); | |
} | |
// If last and current query are not home query, we need to check action keyword | |
else if (_lastQuery?.ActionKeyword != query?.ActionKeyword) | |
{ | |
App.API.LogDebug(ClassName, $"Remove old results"); | |
Results.Clear(); | |
} | |
} |
If Results.Clear()
is called, the result list box will be cleared.
But there still needs some time before the result list is filled with new results, which causes the flicker of result list visibility.
These are screenshot from demo video.
With flicker(empty -> e -> empty):
2025-05-07.13-20-40.mp4
Because empty is home query while e is not, Results.Clear()
will be called.
Without flicker (e -> ee -> e):
2025-05-07.14-56-29.mp4
Because both queries are global query with empty action keyword, Results.Clear()
will not be called.
Metadata
Metadata
Assignees
Labels
Dev branch onlyAn issue or fix for the Dev branch buildAn issue or fix for the Dev branch build