mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
Remove instance logic for BinaryStorage and JsonStorage, part 2
1. part of #389 2. file rename 3. fixup
This commit is contained in:
23
Plugins/Wox.Plugin.CMD/CMDHistory.cs
Normal file
23
Plugins/Wox.Plugin.CMD/CMDHistory.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wox.Plugin.CMD
|
||||
{
|
||||
public class CMDHistory
|
||||
{
|
||||
public bool ReplaceWinR { get; set; } = true;
|
||||
public bool LeaveCmdOpen { get; set; }
|
||||
public Dictionary<string, int> Count = new Dictionary<string, int>();
|
||||
|
||||
public void AddCmdHistory(string cmdName)
|
||||
{
|
||||
if (Count.ContainsKey(cmdName))
|
||||
{
|
||||
Count[cmdName] += 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
Count.Add(cmdName, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user