diff --git a/Plugins/Flow.Launcher.Plugin.Shell/Main.cs b/Plugins/Flow.Launcher.Plugin.Shell/Main.cs index bd316a6bf..fce934afb 100644 --- a/Plugins/Flow.Launcher.Plugin.Shell/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Shell/Main.cs @@ -102,7 +102,7 @@ namespace Flow.Launcher.Plugin.Shell private List GetHistoryCmds(string cmd, Result result) { - IEnumerable history = _settings.Count.Where(o => o.Key.Contains(cmd)) + IEnumerable history = _settings.CommandHistory.Where(o => o.Key.Contains(cmd)) .OrderByDescending(o => o.Value) .Select(m => { @@ -148,7 +148,7 @@ namespace Flow.Launcher.Plugin.Shell private List ResultsFromlHistory() { - IEnumerable history = _settings.Count.OrderByDescending(o => o.Value) + IEnumerable history = _settings.CommandHistory.OrderByDescending(o => o.Value) .Select(m => new Result { Title = m.Key, diff --git a/Plugins/Flow.Launcher.Plugin.Shell/Settings.cs b/Plugins/Flow.Launcher.Plugin.Shell/Settings.cs index 8c745f326..58ac41fc3 100644 --- a/Plugins/Flow.Launcher.Plugin.Shell/Settings.cs +++ b/Plugins/Flow.Launcher.Plugin.Shell/Settings.cs @@ -9,17 +9,17 @@ namespace Flow.Launcher.Plugin.Shell public bool LeaveShellOpen { get; set; } public bool RunAsAdministrator { get; set; } = true; - public Dictionary Count { get; set; } = new Dictionary(); + public Dictionary CommandHistory { get; set; } = new Dictionary(); public void AddCmdHistory(string cmdName) { - if (Count.ContainsKey(cmdName)) + if (CommandHistory.ContainsKey(cmdName)) { - Count[cmdName] += 1; + CommandHistory[cmdName] += 1; } else { - Count.Add(cmdName, 1); + CommandHistory.Add(cmdName, 1); } } }