Commit graph

54 commits

Author SHA1 Message Date
Jack251970
b93faffdc0 Code cleanup 2025-03-22 23:12:20 +08:00
Jack251970
9167cba636 Use selected item for binding preview properties & Code cleanup 2025-03-22 23:08:47 +08:00
Kevin Zhang
5f6ac6a35e Update Flow.Launcher/ViewModel/ResultsViewModel.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-25 14:39:04 +08:00
Hongtao Zhang
51a16cc40f Remove Result comparison and Change signature from IEnumerable to ICollection (due to the potential of multiple enumeration) 2024-12-25 14:39:04 +08:00
Yusyuriv
29be504789
Implement temporary result list height increase when preview is on 2024-05-30 20:49:36 +06:00
Yusyuriv
8c3ef711a0
Resizeable window: fixes after review 2024-05-27 13:09:22 +06:00
DB p
2e3b61cec6 Change Window to Resizable 2024-05-14 16:54:15 +09:00
DB p
c0d41a358f - Remove Duplicated History Hotkey
- Add Select Last Item hotkey
2024-04-16 02:21:29 +09:00
AminSallah
1d6c4cee2e
AddResults & UpdateResults new param "reselect" 2024-02-25 04:11:30 +02:00
Hongtao Zhang
48d3193876
Fix spelling 2023-01-09 09:56:48 -06:00
Hongtao Zhang
a92ebf5756
Dynamic Height and Dynamic Icon Size 2023-01-08 16:31:37 -06:00
Vic
62821d37dd Use Visibility for consistency 2022-12-29 13:13:28 +08:00
DB p
e470445591 Adjust Base/Light Xaml / Add property /Fix Diffrence preview 2022-11-23 12:02:10 +09:00
Hongtao Zhang
48aaf3a7db
fix right click not working (and refactor left click) 2022-11-18 23:15:02 -06:00
Jeremy
9161de2fe0 formatting 2022-01-20 20:23:13 +11:00
Dobin Park
91d21a73c8 - Search Ico- In the theme, search icons can be inserted and styled (margin, size, color, option, etc).
- If you want to erase it, adjust the opacity.
- Geometry type data (svg to xaml) was inserted into base.xaml.
- If there is no data, use the one in the base.
- The top margin of the list box was adjusted under the theme.n to changable b
2021-09-28 16:33:28 +09:00
Dobin Park
3a0594f99b - Changing Result item and hotkey layout
- Add Hightlight Styling
- Add New Themes and adjust classic themes
2021-09-27 20:00:46 +09:00
Jeremy Wu
abb11b22fc update 2021-02-19 21:03:23 +11:00
弘韬 张
4a3ad08548 Use IReadOnlyCollection to avoid avoid duplicate iteration
Add distinct to NewResults to try avoiding duplicate result
2021-02-17 22:36:35 +08:00
弘韬 张
350499a480 Optimize Logic and code 2021-02-16 02:12:28 +08:00
Jeremy Wu
163bfa303b formatting and naming 2021-01-25 19:18:13 +11:00
Jeremy Wu
e46feb1165 fix formatting 2021-01-25 18:57:58 +11:00
弘韬 张
f388b75d26 Add index when calling NotifyCollectionChangeAction.Add 2021-01-21 19:51:22 +08:00
弘韬 张
5389763f58 Add another check to avoid some corner case 2021-01-21 18:38:02 +08:00
弘韬 张
8311b39ddc Add null check for OnCollectionChanged 2021-01-21 18:35:24 +08:00
弘韬 张
9d126df225 Use List replace ObservableCollection to have control toward Capacity 2021-01-20 17:49:39 +08:00
弘韬 张
1aa119d672 fix some legacy code from #195 2021-01-20 13:49:50 +08:00
Jeremy Wu
89443bace7 fix formatting 2021-01-20 06:34:26 +11:00
张弘韬
691c2b06f9 increase edittime boundary 2021-01-10 11:14:00 +08:00
弘韬 张
c3d5d4c0ce Don't update collection when both newItems and collection is empty 2020-12-04 22:24:25 +08:00
弘韬 张
aa20d505fe Revert creating a new task when adding result. 2020-12-04 21:54:39 +08:00
弘韬 张
eb13a18d52 Use task.run in addresult instead of CollectionChange event. 2020-12-03 15:38:00 +08:00
弘韬 张
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
弘韬 张
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
弘韬 张
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
弘韬 张
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