Skip to content

Commit c0a61c0

Browse files
committed
slightly code adjustment
1 parent 4d42e52 commit c0a61c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,14 +556,14 @@ private async void QueryResults()
556556

557557
StringBuilder queryBuilder = new(QueryText);
558558

559-
foreach (var shortcut in _settings.ShortCuts)
559+
foreach (var (key, value) in _settings.ShortCuts)
560560
{
561-
if (queryBuilder.Equals(shortcut.Key))
561+
if (queryBuilder.Equals(key))
562562
{
563-
queryBuilder.Replace(shortcut.Key, shortcut.Value);
563+
queryBuilder.Replace(key, value);
564564
}
565565

566-
queryBuilder.Replace('@' + shortcut.Key, shortcut.Value);
566+
queryBuilder.Replace('@' + key, value);
567567
}
568568

569569
_updateSource?.Dispose();

0 commit comments

Comments
 (0)