Commit graph

67 commits

Author SHA1 Message Date
弘韬 张
25bc2a70e3 Add timeout for waiting collectionchange event, although seems the deadlock isn't caused by this. 2020-12-03 10:33:19 +08:00
弘韬 张
e7dd8676ec Change some code and check out what cause those error 2020-12-02 23:38:37 +08:00
弘韬 张
98e6a1ab8a Revert using List instead of observablecollection 2020-12-02 20:57:23 +08:00
弘韬 张
19c7446552 Add Lock to the place we directly update the ResultCollection 2020-12-02 13:56:50 +08:00
弘韬 张
a640eadf1b Use List instead of ObservableCollection as base class for resultcollection for better customized control of event 2020-11-29 14:56:08 +08:00
弘韬 张
813e9b5439 fix selected item doesn't always be the first item issue.
Method: Not only update selected index, but also update selected item when adding results.
2020-11-28 13:25:49 +08:00
Jeremy Wu
1c6769cbcc fix merge 2020-11-27 07:43:03 +11:00
Jeremy Wu
b8b0e8c23a Merge branch 'dev' into RenderImprovement 2020-11-27 07:32:00 +11:00
Jeremy Wu
ac945f4814 revert unneeded condition on Constant.MissingImgIcon 2020-11-27 07:04:39 +11:00
Jeremy Wu
efcb6a7833 add status check when base.Value has faulted 2020-11-26 20:47:04 +11:00
弘韬 张
dd8a31ccd8 Add new to Value Property of the LazyAsync clas 2020-11-25 23:26:35 +08:00
弘韬 张
b3df2fd590 change default image property name 2020-11-25 23:22:27 +08:00
弘韬 张
a7310d5d22 Use Customized LazyAsync class to load image instead of the weird way of updating lazy class async 2020-11-25 23:21:53 +08:00
弘韬 张
99086e2644 change SetImage to method instead of property to avoid unintended use 2020-11-25 23:21:40 +08:00
弘韬 张
1439ee7e9e Use a default image to list when the image hasn't been loaded in cache.
Co-authored-by: Bao-Qian <bao.github@outlook.com>
2020-11-25 23:21:20 +08:00
Qian Bao
2c14c2120f Lazy Load Image 2020-11-25 23:20:03 +08:00
弘韬 张
69e11e2861 Use CancellationToken.IsCancellationRequested wherever is possible to use, check equality of query whererever token is unaccessiable.
Dispose CancellationTokenSourse manually
2020-11-24 19:24:49 +08:00
弘韬 张
c110749434 Add more cancellation 2020-11-24 17:41:57 +08:00
弘韬 张
81a02c6e64 Don't add result to queue unless the query match (plugin event driven update)
Remove the Task.Run because updating result metadata and adding result to queue should not be time wasted.
2020-11-24 17:39:29 +08:00
弘韬 张
8f6f2fbf6f Merge remote-tracking branch 'upstream/dev' into RenderImprovement 2020-11-22 19:09:46 +08:00
弘韬 张
9bc58fe9da Only stop querying for global query 2020-11-22 18:31:04 +08:00
弘韬 张
34dc0d0220 move progressbar task position and change the way of comparison 2020-11-21 16:44:39 +08:00
弘韬 张
f11b302c37 slighly reduce the delay time 2020-11-21 12:01:57 +08:00
弘韬 张
4fb884cf57 Wait 50 ms for query staying same when updating view. 2020-11-20 23:21:04 +08:00
弘韬 张
ea5e9a0fae Use New keyword for customized lazyAsync Value property 2020-11-20 23:05:12 +08:00
弘韬 张
6863b412e3 Use TPL's BufferBlock instead of BlockingCollection, which will block the current Thread.
This should make the Task.Run works better.
2020-11-20 22:45:33 +08:00
taooceros
df3a9a4c97
Use default system browser (#214) 2020-11-20 16:26:29 +02:00
弘韬 张
2b423d9d80 Use single add notify for each element when the new Item is small or the collection hasn't been buffer a lot.
This seems solve the startup stunt and potentially make render faster. (Need Testing)
2020-11-17 16:46:36 +08:00
弘韬 张
23d9e253ba Add some cancellationtoken check 2020-11-16 19:20:52 +08:00
弘韬 张
d9ef68272b change default image property name 2020-11-16 12:58:53 +08:00
弘韬 张
0a9bad3ffa Use Customized LazyAsync class to load image instead of the weird way of updating lazy class async 2020-11-16 12:46:39 +08:00
弘韬 张
e7c02dac72 change SetImage to method instead of property to avoid unintended use 2020-11-16 10:12:32 +08:00
弘韬 张
2161f27a88 fix unintended token argument pass 2020-11-16 08:32:11 +08:00
弘韬 张
dc982e277f Use a default image to list when the image hasn't been loaded in cache.
Co-authored-by: Bao-Qian <bao.github@outlook.com>
2020-11-15 21:00:00 +08:00
弘韬 张
7dc247333c remove check of empty of Results when change selected index 2020-11-14 17:20:48 +08:00
弘韬 张
3076e501bf add null check when processing result update 2020-11-14 17:10:19 +08:00
弘韬 张
4cf143d435 Don't notify change until finishing up adding new result 2020-11-14 15:07:56 +08:00
弘韬 张
dab8c5da95 Block Notifychange unless all the element is added into the observablecollection
This should improve the response speed.
2020-11-14 14:53:15 +08:00
弘韬 张
e34a52c74e Don't change selected index unless collection is not empty 2020-11-14 12:25:54 +08:00
弘韬 张
e625c192ee remove unused code 2020-11-14 12:25:37 +08:00
弘韬 张
4b2abfc708 Reduce batch time to speed up view update
change selected index update place to fix not first selection issue
2020-11-13 13:41:59 +08:00
弘韬 张
f51d2c57c7 keep all result in result list view 2020-11-12 15:46:24 +08:00
弘韬 张
1b76da175f Add remove previous query result back to keep different action word distinct 2020-11-12 15:37:54 +08:00
弘韬 张
ebddf19ba2 Fix not canceled token and adding comment
Co-authored-by: bao-qian <bao.github@outlook.com>
2020-11-11 19:06:05 +08:00
弘韬 张
52887aacf0 Batch process ui change with interval 50ms 2020-11-11 18:54:40 +08:00
Qian Bao
0e0f24f635 Lazy Load Image 2020-11-10 17:27:48 +08:00
弘韬 张
9d21649622 Change UI rendering logic
Co-authored-by: Bao-Qian <bao.github@outlook.com>
2020-11-10 17:27:09 +08:00
Jeremy Wu
d3fbabe10e add dedicated missing img icon 2020-09-07 06:55:12 +10:00
Jeremy Wu
3106b3823f fix missing result list preview in Theme tab 2020-08-04 08:29:22 +10:00
Jeremy Wu
f63660624e add update messages to indicate progress 2020-07-06 08:00:22 +10:00