Skip to content

Conversation

@taooceros
Copy link
Member

@taooceros taooceros commented Nov 10, 2020

Change UI rendering logic to fix image flickering (the major fix is by removing the isAsync for image binding)
This comes from @bao-qian 's change in Wox, #2899. Thank you for introducing the fix for image flickering.

The other change is majoring makes the code simpler and more readable, and remove duplicate logic.

Also fix that sometimes the selected index is not first when updating result views. https://social.msdn.microsoft.com/Forums/vstudio/en-US/5ff71969-f183-4744-909d-50f7cd414954/binding-a-tabcontrols-selectedindex-not-working?forum=wpf

@taooceros taooceros added bug Something isn't working kind/ui related to UI, icons, themes, etc enhancement New feature or request labels Nov 10, 2020
@jjw24
Copy link
Member

jjw24 commented Nov 11, 2020

Hmmm, getting this odd behaviour... should empty the result list at this point of the query
image

@jjw24 jjw24 removed the enhancement New feature or request label Nov 11, 2020
@jjw24 jjw24 linked an issue Nov 11, 2020 that may be closed by this pull request
@taooceros
Copy link
Member Author

taooceros commented Nov 11, 2020

Now, it should work better.

Hmmm, getting this odd behaviour... should empty the result list at this point of the query

fix that

@jjw24
Copy link
Member

jjw24 commented Nov 11, 2020

When I am query, i am missing results. It seems it only gets the top portion of the results list, evident when i use Explorer plugin to browse folders.

@taooceros
Copy link
Member Author

taooceros commented Nov 12, 2020

When I am query, i am missing results. It seems it only gets the top portion of the results list, evident when i use Explorer plugin to browse folders.

That's because I use the MaxResult to limit the number of results to be added into result list. If that's not intended, I can remove it.
image

@jjw24
Copy link
Member

jjw24 commented Nov 12, 2020

When I am query, i am missing results. It seems it only gets the top portion of the results list, evident when i use Explorer plugin to browse folders.

That's because I use the MaxResult to limit the number of results to be added into result list. If that's not intended, I can remove it.
image

Oh I see. Let's keep the original behaviour, let it flow :)

@taooceros
Copy link
Member Author

Oh I see. Let's keep the original behaviour, let it flow :)

ok!

@jjw24
Copy link
Member

jjw24 commented Nov 12, 2020

so far I came across intermittent issues:

  • in the result list, sometimes highlighting does not show, so I couldnt just type the query and then press enter on the 1st result
  • the highlighting sometimes jumped to 2nd or 3rd result

Note: it happens sometimes. if there is a way to repro consistently I will update

@taooceros
Copy link
Member Author

in the result list, sometimes highlighting does not show, so I couldnt just type the query and then press enter on the 1st result

This may because of the delay I added for batch processing, let's make it shorter and take a try.

the highlighting sometimes jumped to 2nd or 3rd result

This is quite weird....and I haven't met that situation. Let's take a look after I reduce the delay time.

@taooceros
Copy link
Member Author

UPDATE

the highlighting sometimes jumped to 2nd or 3rd result

That's because some of the plugin query is slower, so that their result view is updated later than others, and the selection has not been updated, so that the selection is not on them even though their score is higher. I will try to update selection every time result view is change.

@jjw24
Copy link
Member

jjw24 commented Nov 14, 2020

just used the latest changes, hmm still getting this incorrect result highlighting occasionally:
image

@taooceros taooceros requested review from jjw24 and removed request for jjw24 January 13, 2021 02:01
@jjw24
Copy link
Member

jjw24 commented Jan 13, 2021

they are appearing at the same time when using websearch plugin

@jjw24
Copy link
Member

jjw24 commented Jan 13, 2021

i am running it directly from the branch in visual studio

@jjw24
Copy link
Member

jjw24 commented Jan 13, 2021

remove output, remove roaming data location, then run from vs, search 'g a' and i get it instantly

@taooceros
Copy link
Member Author

hmmm still cannot reproduce.... Are you using Google as search suggestion or none? I have tried Baidu and Bing, and both are fine.

@jjw24
Copy link
Member

jjw24 commented Jan 14, 2021

None. Basically all default settings

@taooceros
Copy link
Member Author

taooceros commented Jan 14, 2021

None. Basically all default settings

Fix it. It is due to result update event create duplicate result. @jjw24

@jjw24 jjw24 added the review in progress Indicates that a review is in progress for this PR label Jan 17, 2021
@jjw24
Copy link
Member

jjw24 commented Jan 17, 2021

@taooceros could you merge dev in and resolve conflict please

@taooceros
Copy link
Member Author

@taooceros could you merge dev in and resolve conflict please

Sure

}
}


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol how come ur prs always have random additional white space

@jjw24 jjw24 merged commit 0de6c4d into Flow-Launcher:dev Jan 19, 2021
@jjw24 jjw24 removed the review in progress Indicates that a review is in progress for this PR label Jan 19, 2021
taooceros added a commit to taooceros/Flow.Launcher that referenced this pull request Jan 20, 2021
@taooceros taooceros deleted the RenderImprovement branch January 27, 2021 08:28
@taooceros taooceros mentioned this pull request Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request kind/ui related to UI, icons, themes, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge performance improvements from Wox Icon flickering when searching

3 participants