Skip to content

Commit 3f0a766

Browse files
authored
Merge pull request #131 from Flow-Launcher/fix_missing_theme_resultlist
Fix missing result list preview in Theme tab
2 parents 2df1075 + 3106b38 commit 3f0a766

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

Flow.Launcher/SettingWindow.xaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,13 @@
248248
<RowDefinition Height="50" />
249249
<RowDefinition />
250250
</Grid.RowDefinitions>
251-
<TextBox Text="{DynamicResource hiThere}" IsReadOnly="True"
252-
Style="{DynamicResource QueryBoxStyle}" Grid.Row="0"
251+
<TextBox Grid.Row="0"
252+
Text="{DynamicResource hiThere}" IsReadOnly="True"
253+
Style="{DynamicResource QueryBoxStyle}"
253254
Margin="18 0 56 0" />
254255
<Image Source="{Binding ThemeImage}" HorizontalAlignment="Right" />
255-
<ContentControl Visibility="Visible" Grid.Row="1">
256-
<flowlauncher:ResultListBox DataContext="{Binding PreviewResults}" />
256+
<ContentControl Grid.Row="1">
257+
<flowlauncher:ResultListBox DataContext="{Binding PreviewResults, Mode=OneTime}" Visibility="Visible" />
257258
</ContentControl>
258259
</Grid>
259260
</Border>

Flow.Launcher/ViewModel/SettingWindowViewModel.cs

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -319,36 +319,30 @@ public ResultsViewModel PreviewResults
319319
{
320320
new Result
321321
{
322-
Title = "WoX is a launcher for Windows that simply works.",
323-
SubTitle = "You can call it Windows omni-eXecutor if you want a long name."
322+
Title = "Explorer",
323+
SubTitle = "Search for files, folders and file contents",
324+
IcoPath = Path.Combine(Constant.ProgramDirectory, @"Plugins\Flow.Launcher.Plugin.Explorer\Images\explorer.png")
324325
},
325326
new Result
326327
{
327-
Title = "Search for everything—applications, folders, files and more.",
328-
SubTitle = "Use pinyin to search for programs. (yyy / wangyiyun → 网易云音乐)"
328+
Title = "WebSearch",
329+
SubTitle = "Search the web with different search engine support",
330+
IcoPath =Path.Combine(Constant.ProgramDirectory, @"Plugins\Flow.Launcher.Plugin.WebSearch\Images\web_search.png")
329331
},
330332
new Result
331333
{
332-
Title = "Keyword plugin search.",
333-
SubTitle = "search google with g search_term."
334+
Title = "Program",
335+
SubTitle = "Launch programs as admin or a different user",
336+
IcoPath =Path.Combine(Constant.ProgramDirectory, @"Plugins\Flow.Launcher.Plugin.Program\Images\program.png")
334337
},
335338
new Result
336339
{
337-
Title = "Build custom themes at: ",
338-
SubTitle = Theme
339-
},
340-
new Result
341-
{
342-
Title = "Install plugins from: ",
343-
SubTitle = Plugin
344-
},
345-
new Result
346-
{
347-
Title = $"Open Source: {_updater.GitHubRepository}",
348-
SubTitle = "Please star it!"
340+
Title = "ProcessKiller",
341+
SubTitle = "Terminate unwanted processes",
342+
IcoPath =Path.Combine(Constant.ProgramDirectory, @"Plugins\Flow.Launcher.Plugin.ProcessKiller\Images\app.png")
349343
}
350344
};
351-
var vm = new ResultsViewModel();
345+
var vm = new ResultsViewModel(Settings);
352346
vm.AddResults(results, "PREVIEW");
353347
return vm;
354348
}

0 commit comments

Comments
 (0)