diff --git a/Flow.Launcher.Plugin.Putty.Test/PluginTest.cs b/Flow.Launcher.Plugin.Putty.Test/PluginTest.cs index f882877..715957b 100644 --- a/Flow.Launcher.Plugin.Putty.Test/PluginTest.cs +++ b/Flow.Launcher.Plugin.Putty.Test/PluginTest.cs @@ -9,7 +9,7 @@ namespace Flow.Launcher.Plugin.Putty.Test public class PluginTest { private const string Keyword = "pt"; - private readonly Result _defaultPuttyResultItem = new Result { Title = "putty.exe", IcoPath = "logo.png", SubTitle = "Launch Clean Putty" }; + private readonly Result _defaultPuttyResultItem = new Result { Title = "Settings", IcoPath = "logo.png", SubTitle = "Launch Clean Putty" }; [Test] public void Query_returns_only_Putty_as_result_with_empty_searchquery() diff --git a/Flow.Launcher.Plugin.Putty/Plugin.cs b/Flow.Launcher.Plugin.Putty/Plugin.cs index bfcfb6d..d3582ba 100644 --- a/Flow.Launcher.Plugin.Putty/Plugin.cs +++ b/Flow.Launcher.Plugin.Putty/Plugin.cs @@ -163,7 +163,7 @@ public List Query(Query query) /// /// A Result object containing the PuttySession identifier and its connection string private Result CreateResult( - string title = "putty.exe", string subTitle = "Open Putty", int score = 50, PuttySession puttySession = null) + string title = "Settings", string subTitle = "Open Putty configurations", int score = 50, PuttySession puttySession = null) { if (puttySession != null && string.IsNullOrEmpty(puttySession.Hostname)) return new Result @@ -180,8 +180,8 @@ public List Query(Query query) Title = title, SubTitle = subTitle, IcoPath = "icon.png", - Action = context => title != "putty.exe" ? LaunchPuttySession(title, puttySession) : LaunchPuttySession(string.Empty),//load Putty instead, - Score = score + Action = context => title != "Settings" ? LaunchPuttySession(title, puttySession) : LaunchPuttySession(string.Empty),//load Putty instead, + Score = title != "Settings" ? score : 0 }; } @@ -196,7 +196,7 @@ private bool LaunchPuttySession(string session, PuttySession puttySession = null var puttyPath = settings.PuttyPath; if (string.IsNullOrEmpty(settings.PuttyPath)) - puttyPath = "putty.exe"; + puttyPath = "Settings"; var p = new Process { StartInfo = { FileName = puttyPath } }; diff --git a/Flow.Launcher.Plugin.Putty/plugin.json b/Flow.Launcher.Plugin.Putty/plugin.json index 8480f39..83e77d0 100644 --- a/Flow.Launcher.Plugin.Putty/plugin.json +++ b/Flow.Launcher.Plugin.Putty/plugin.json @@ -4,7 +4,7 @@ "Name": "Putty", "Description": "Launch Putty Sessions", "Author":"Konstantin Zaitcev, Kai Eichinger (@cH40zLord)", - "Version":"2.1.2", + "Version":"2.1.3", "Language": "csharp", "Website": "https://github.com/jjw24/Flow.Launcher.Plugin.Putty", "ExecuteFileName": "Flow.Launcher.Plugin.Putty.dll",