mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Add 'src/modules/launcher/' from commit '28acd466b352a807910cebbc74477d3173b31511'
git-subtree-dir: src/modules/launcher git-subtree-mainline:852689b3dfgit-subtree-split:28acd466b3
This commit is contained in:
34
src/modules/launcher/Plugins/Wox.Plugin.Shell/Settings.cs
Normal file
34
src/modules/launcher/Plugins/Wox.Plugin.Shell/Settings.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wox.Plugin.Shell
|
||||
{
|
||||
public class Settings
|
||||
{
|
||||
public Shell Shell { get; set; } = Shell.Cmd;
|
||||
public bool ReplaceWinR { get; set; } = true;
|
||||
public bool LeaveShellOpen { get; set; }
|
||||
public bool RunAsAdministrator { get; set; } = true;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum Shell
|
||||
{
|
||||
Cmd = 0,
|
||||
Powershell = 1,
|
||||
RunCommand = 2,
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user