mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Use variable instead of global static method
1. introduce variable 2. part of #389 3. refactoring program suffix in program plugin 4. 全局变量一时爽,代码重构火葬场
This commit is contained in:
@@ -7,13 +7,13 @@ namespace Wox.Plugin.Program.ProgramSources
|
||||
[Browsable(false)]
|
||||
public class UserStartMenuProgramSource : FileSystemProgramSource
|
||||
{
|
||||
public UserStartMenuProgramSource()
|
||||
: base(Environment.GetFolderPath(Environment.SpecialFolder.Programs))
|
||||
public UserStartMenuProgramSource(string[] suffixes)
|
||||
: base(Environment.GetFolderPath(Environment.SpecialFolder.Programs), suffixes)
|
||||
{
|
||||
}
|
||||
|
||||
public UserStartMenuProgramSource(ProgramSource source)
|
||||
: this()
|
||||
: this(source.Suffixes)
|
||||
{
|
||||
BonusPoints = source.BonusPoints;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user