mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 14:41:21 +08:00
spelling: registry
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
parent
c72ed77632
commit
9c6c7a82cb
@ -22,7 +22,7 @@ namespace Microsoft.Plugin.Uri
|
||||
private readonly PluginJsonStorage<UriSettings> _storage;
|
||||
private bool _disposed;
|
||||
private UriSettings _uriSettings;
|
||||
private RegisteryWrapper _registeryWrapper;
|
||||
private RegistryWrapper _registryWrapper;
|
||||
|
||||
public Main()
|
||||
{
|
||||
@ -30,7 +30,7 @@ namespace Microsoft.Plugin.Uri
|
||||
_uriSettings = _storage.Load();
|
||||
_uriParser = new ExtendedUriParser();
|
||||
_uriResolver = new UriResolver();
|
||||
_registeryWrapper = new RegisteryWrapper();
|
||||
_registryWrapper = new RegistryWrapper();
|
||||
}
|
||||
|
||||
public string BrowserIconPath { get; set; }
|
||||
@ -109,14 +109,14 @@ namespace Microsoft.Plugin.Uri
|
||||
{
|
||||
try
|
||||
{
|
||||
var progId = _registeryWrapper.GetRegistryValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice", "ProgId");
|
||||
var progId = _registryWrapper.GetRegistryValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice", "ProgId");
|
||||
var programLocation =
|
||||
|
||||
// Resolve App Icon (UWP)
|
||||
_registeryWrapper.GetRegistryValue("HKEY_CLASSES_ROOT\\" + progId + "\\Application", "ApplicationIcon")
|
||||
_registryWrapper.GetRegistryValue("HKEY_CLASSES_ROOT\\" + progId + "\\Application", "ApplicationIcon")
|
||||
|
||||
// Resolves default file association icon (UWP + Normal)
|
||||
?? _registeryWrapper.GetRegistryValue("HKEY_CLASSES_ROOT\\" + progId + "\\DefaultIcon", null);
|
||||
?? _registryWrapper.GetRegistryValue("HKEY_CLASSES_ROOT\\" + progId + "\\DefaultIcon", null);
|
||||
|
||||
// "Handles 'Indirect Strings' (UWP programs)"
|
||||
if (programLocation.StartsWith("@", StringComparison.Ordinal))
|
||||
|
@ -7,7 +7,7 @@ using Microsoft.Win32;
|
||||
|
||||
namespace Microsoft.Plugin.Uri
|
||||
{
|
||||
public class RegisteryWrapper : IRegistryWrapper
|
||||
public class RegistryWrapper : IRegistryWrapper
|
||||
{
|
||||
public string GetRegistryValue(string registryLocation, string valueName)
|
||||
{
|
Loading…
Reference in New Issue
Block a user