/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Helpers/Environment/PolicyHelpers.cs
26 строк
580 B
Saravanan G
Fix: Fixed issue where the Customize tab was hidden for network folders that support custom icons (#18771)
28 июл 2026, 01:06
Не верифицирован
28 июл 2026, 01:06
af991c3
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. using Microsoft.Win32; namespace Files.App.Helpers { internal static class PolicyHelpers { private const string ExplorerPolicyRegistryKey = @"SOFTWARE\Policies\Microsoft\Windows\Explorer"; public static bool IsShellShortcutIconRemotePathEnabled() { try { using var policySubkey = Registry.LocalMachine.OpenSubKey(ExplorerPolicyRegistryKey); return Convert.ToBoolean(policySubkey?.GetValue("EnableShellShortcutIconRemotePath", false)); } catch { return false; } } } }