mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
spelling: registry
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Microsoft.Plugin.Uri
|
|||||||
private readonly PluginJsonStorage<UriSettings> _storage;
|
private readonly PluginJsonStorage<UriSettings> _storage;
|
||||||
private bool _disposed;
|
private bool _disposed;
|
||||||
private UriSettings _uriSettings;
|
private UriSettings _uriSettings;
|
||||||
private RegisteryWrapper _registeryWrapper;
|
private RegistryWrapper _registryWrapper;
|
||||||
|
|
||||||
public Main()
|
public Main()
|
||||||
{
|
{
|
||||||
@@ -30,7 +30,7 @@ namespace Microsoft.Plugin.Uri
|
|||||||
_uriSettings = _storage.Load();
|
_uriSettings = _storage.Load();
|
||||||
_uriParser = new ExtendedUriParser();
|
_uriParser = new ExtendedUriParser();
|
||||||
_uriResolver = new UriResolver();
|
_uriResolver = new UriResolver();
|
||||||
_registeryWrapper = new RegisteryWrapper();
|
_registryWrapper = new RegistryWrapper();
|
||||||
}
|
}
|
||||||
|
|
||||||
public string BrowserIconPath { get; set; }
|
public string BrowserIconPath { get; set; }
|
||||||
@@ -109,14 +109,14 @@ namespace Microsoft.Plugin.Uri
|
|||||||
{
|
{
|
||||||
try
|
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 =
|
var programLocation =
|
||||||
|
|
||||||
// Resolve App Icon (UWP)
|
// 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)
|
// 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)"
|
// "Handles 'Indirect Strings' (UWP programs)"
|
||||||
if (programLocation.StartsWith("@", StringComparison.Ordinal))
|
if (programLocation.StartsWith("@", StringComparison.Ordinal))
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ using Microsoft.Win32;
|
|||||||
|
|
||||||
namespace Microsoft.Plugin.Uri
|
namespace Microsoft.Plugin.Uri
|
||||||
{
|
{
|
||||||
public class RegisteryWrapper : IRegistryWrapper
|
public class RegistryWrapper : IRegistryWrapper
|
||||||
{
|
{
|
||||||
public string GetRegistryValue(string registryLocation, string valueName)
|
public string GetRegistryValue(string registryLocation, string valueName)
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user