mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
init checkin (#6100)
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Microsoft.Plugin.Program
|
||||
private static PluginInitContext _context;
|
||||
|
||||
private readonly PluginJsonStorage<ProgramPluginSettings> _settingsStorage;
|
||||
private bool _disposed = false;
|
||||
private bool _disposed;
|
||||
private PackageRepository _packageRepository = new PackageRepository(new PackageCatalogWrapper(), new BinaryStorage<IList<UWPApplication>>("UWP"));
|
||||
private static Win32ProgramFileSystemWatchers _win32ProgramRepositoryHelper;
|
||||
private static Win32ProgramRepository _win32ProgramRepository;
|
||||
@@ -173,7 +173,7 @@ namespace Microsoft.Plugin.Program
|
||||
catch (Exception)
|
||||
{
|
||||
var name = "Plugin: Program";
|
||||
var message = $"Unable to start: {info.FileName}";
|
||||
var message = $"Unable to start: {info?.FileName}";
|
||||
_context.API.ShowMsg(name, message, string.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
||||
@@ -17,9 +17,9 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
|
||||
public string FamilyName { get; } = string.Empty;
|
||||
|
||||
public bool IsFramework { get; } = false;
|
||||
public bool IsFramework { get; }
|
||||
|
||||
public bool IsDevelopmentMode { get; } = false;
|
||||
public bool IsDevelopmentMode { get; }
|
||||
|
||||
public string InstalledLocation { get; } = string.Empty;
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
// Contains the arguments to the app
|
||||
public string Arguments { get; set; } = string.Empty;
|
||||
|
||||
public bool HasArguments { get; set; } = false;
|
||||
public bool HasArguments { get; set; }
|
||||
|
||||
// Retrieve the target path using Shell Link
|
||||
public string RetrieveTargetPath(string path)
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
|
||||
public bool Enabled { get; set; }
|
||||
|
||||
public bool HasArguments { get; set; } = false;
|
||||
public bool HasArguments { get; set; }
|
||||
|
||||
public string Arguments { get; set; } = string.Empty;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Microsoft.Plugin.Program.Storage
|
||||
|
||||
public List<FileSystemWatcherWrapper> FileSystemWatchers { get; set; }
|
||||
|
||||
private bool _disposed = false;
|
||||
private bool _disposed;
|
||||
|
||||
// This class contains the list of directories to watch and initializes the File System Watchers
|
||||
public Win32ProgramFileSystemWatchers()
|
||||
|
||||
Reference in New Issue
Block a user