From 3106b3823f469b92bb3cc4c67515d8afd5d0ae40 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Tue, 4 Aug 2020 08:29:22 +1000 Subject: [PATCH] fix missing result list preview in Theme tab --- Flow.Launcher/SettingWindow.xaml | 9 +++--- .../ViewModel/SettingWindowViewModel.cs | 32 ++++++++----------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index acd992b6c6d..f8903e891aa 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -248,12 +248,13 @@ - - - + + diff --git a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs index 61c1c9ebe8d..853925852a1 100644 --- a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs +++ b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs @@ -319,36 +319,30 @@ public ResultsViewModel PreviewResults { new Result { - Title = "WoX is a launcher for Windows that simply works.", - SubTitle = "You can call it Windows omni-eXecutor if you want a long name." + Title = "Explorer", + SubTitle = "Search for files, folders and file contents", + IcoPath = Path.Combine(Constant.ProgramDirectory, @"Plugins\Flow.Launcher.Plugin.Explorer\Images\explorer.png") }, new Result { - Title = "Search for everything—applications, folders, files and more.", - SubTitle = "Use pinyin to search for programs. (yyy / wangyiyun → 网易云音乐)" + Title = "WebSearch", + SubTitle = "Search the web with different search engine support", + IcoPath =Path.Combine(Constant.ProgramDirectory, @"Plugins\Flow.Launcher.Plugin.WebSearch\Images\web_search.png") }, new Result { - Title = "Keyword plugin search.", - SubTitle = "search google with g search_term." + Title = "Program", + SubTitle = "Launch programs as admin or a different user", + IcoPath =Path.Combine(Constant.ProgramDirectory, @"Plugins\Flow.Launcher.Plugin.Program\Images\program.png") }, new Result { - Title = "Build custom themes at: ", - SubTitle = Theme - }, - new Result - { - Title = "Install plugins from: ", - SubTitle = Plugin - }, - new Result - { - Title = $"Open Source: {_updater.GitHubRepository}", - SubTitle = "Please star it!" + Title = "ProcessKiller", + SubTitle = "Terminate unwanted processes", + IcoPath =Path.Combine(Constant.ProgramDirectory, @"Plugins\Flow.Launcher.Plugin.ProcessKiller\Images\app.png") } }; - var vm = new ResultsViewModel(); + var vm = new ResultsViewModel(Settings); vm.AddResults(results, "PREVIEW"); return vm; }