Skip to content

Dev branch- search bar flickers when action keywords of queries are changed or home page is enabled #3516

@Jack251970

Description

@Jack251970

Issue in codes

This issue is related to these codes:

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.

Image

Image

Image

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

No one assigned

    Labels

    Dev branch onlyAn issue or fix for the Dev branch build

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions