Skip to content

Commit d8d006f

Browse files
authored
add comment
1 parent 3ddf0cf commit d8d006f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ private Query ConstructQuery(string queryText, IEnumerable<CustomShortcutModel>
899899
StringBuilder queryBuilder = new(queryText);
900900
StringBuilder queryBuilderTmp = new(queryText);
901901

902+
// Sorting order is important here, the reason is for matching longest shortcut by default
902903
foreach (var shortcut in customShortcuts.OrderByDescending(x => x.Key.Length))
903904
{
904905
if (queryBuilder.Equals(shortcut.Key))

0 commit comments

Comments
 (0)