mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix crash on theme search
This commit is contained in:
parent
fe8bb6b683
commit
fce3b3ae3d
1 changed files with 2 additions and 3 deletions
|
|
@ -26,8 +26,7 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
LoadThemes();
|
||||
}
|
||||
|
||||
int keywordIndex = query.Search.IndexOf(Keyword, StringComparison.Ordinal);
|
||||
string search = query.Search[(keywordIndex + Keyword.Length + 1)..];
|
||||
string search = query.SecondToEndSearch;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(search))
|
||||
{
|
||||
|
|
@ -52,7 +51,7 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
}
|
||||
|
||||
private void LoadThemes()
|
||||
=> themes = ThemeManager.Instance.LoadAvailableThemes().Select(Path.GetFileNameWithoutExtension);
|
||||
=> themes = ThemeManager.Instance.LoadAvailableThemes().Select(x => x.FileNameWithoutExtension);
|
||||
|
||||
private static Result CreateThemeResult(string theme) => CreateThemeResult(theme, 0, null);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue