Skip to content

Commit

Permalink
Fixed the order of ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Inestic committed May 18, 2022
1 parent 65b532d commit 7cba02f
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 40 deletions.
2 changes: 1 addition & 1 deletion SophiApp/SophiApp/Customisations/CustomisationOs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ public static void _810(bool IsChecked)

public static void _813(bool _) => RegHelper.SetValue(RegistryHive.LocalMachine, POLICIES_SYSTEM_PATH, ADMIN_PROMPT, ADMIN_PROMPT_DEFAULT_VALUE, RegistryValueKind.DWord);

public static void _814 (bool _) => RegHelper.SetValue(RegistryHive.LocalMachine, POLICIES_SYSTEM_PATH, ADMIN_PROMPT, ADMIN_PROMPT_NEVER_VALUE, RegistryValueKind.DWord);
public static void _814(bool _) => RegHelper.SetValue(RegistryHive.LocalMachine, POLICIES_SYSTEM_PATH, ADMIN_PROMPT, ADMIN_PROMPT_NEVER_VALUE, RegistryValueKind.DWord);

public static void _900(bool IsChecked)
{
Expand Down
8 changes: 5 additions & 3 deletions SophiApp/SophiApp/Customisations/CustomisationStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,11 @@ public static bool _351() => OneDriveHelper.IsInstalled()
public static bool _352() => OneDriveHelper.IsInstalled() ? false : throw new OneDriveNotInstalledException();

public static bool _354() => HttpHelper.IsOnline
? VisualRedistrLibsHelper.GetCloudLatestVersion() > VisualRedistrLibsHelper.GetInstalledVersion()
? false
: throw new VisualRedistrLibsLastVersionException()
? VisualRedistrLibsHelper.IsInstalled()
? VisualRedistrLibsHelper.GetCloudLatestVersion() > VisualRedistrLibsHelper.GetInstalledVersion()
? false
: throw new VisualRedistrLibsLastVersionException()
: false
: throw new NoInternetConnectionException();

public static bool _355() => VisualRedistrLibsHelper.IsInstalled()
Expand Down
4 changes: 2 additions & 2 deletions SophiApp/SophiApp/Helpers/VisualRedistrLibsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ internal static Version GetCloudLatestVersion()
internal static Version GetInstalledVersion()
{
var registryData = RegHelper.GetSubKeyNames(RegistryHive.ClassesRoot, REDISTRX64_REGISTRY_PATH)
.FirstOrDefault(key => key.Contains(REDISTRX64_REGISTRY_NAME_PATTERN));
.First(key => key.Contains(REDISTRX64_REGISTRY_NAME_PATTERN));

var version = registryData is null ? "0.0.0.0" : RegHelper.GetValue(RegistryHive.ClassesRoot, registryData, VERSION_NAME) as string;
var version = RegHelper.GetValue(RegistryHive.ClassesRoot, registryData, VERSION_NAME) as string;
return Version.Parse(version);
}

Expand Down
2 changes: 1 addition & 1 deletion SophiApp/SophiApp/Localizations/DE.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@
<system:String x:Key="Localization.ViewTaskScheduler.Open">Aufgabenplanung öffnen</system:String>
<system:String x:Key="Localization.Customizations.RebootRequired">Bitte PC nach dem Anwenden der Einstellungen neu starten</system:String>
<system:String x:Key="WindowsTerminal.OpenIsAdmin">In Windows Terminal öffnen</system:String>
</ResourceDictionary>
</ResourceDictionary>
2 changes: 1 addition & 1 deletion SophiApp/SophiApp/Localizations/IT.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@
<system:String x:Key="Localization.ViewTaskScheduler.Open">Apri Utilità di pianificazione</system:String>
<system:String x:Key="Localization.Customizations.RebootRequired">riavvia il computer dopo aver Applicato le impostazioni</system:String>
<system:String x:Key="WindowsTerminal.OpenIsAdmin">Apri in Windows Terminal</system:String>
</ResourceDictionary>
</ResourceDictionary>
2 changes: 1 addition & 1 deletion SophiApp/SophiApp/Localizations/UA.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@
<system:String x:Key="Localization.ViewTaskScheduler.Open">Відкрити Планувальник завдань</system:String>
<system:String x:Key="Localization.Customizations.RebootRequired">Після застосування налаштувань перезавантажте ваш ПК</system:String>
<system:String x:Key="WindowsTerminal.OpenIsAdmin">Відкрити у Терміналі Windows</system:String>
</ResourceDictionary>
</ResourceDictionary>
62 changes: 31 additions & 31 deletions SophiApp/SophiApp/Resources/UIData.json
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,7 @@
},
"Type": "CheckBox",
"Tag": "System",
"ViewId": 324,
"ViewId": 323,
"Windows10Supported": true,
"Windows11Supported": true
},
Expand Down Expand Up @@ -2862,26 +2862,26 @@
"Windows11Supported": false
},
{
"Id": 353,
"Id": 350,
"Header": {
"EN": "The latest Microsoft Visual C++ Redistributable Packages 2015–2022 x64",
"RU": "Последняя версия распространяемых пакетов Microsoft Visual C++ 2015–2022 x64",
"DE": "Die neuesten Microsoft Visual C++ Redistributable Pakete 2015-2022 x64",
"UA": "Остання версія розповсюджуваних пакетів Microsoft Visual C++ 2015–2022 x64",
"IT": "Gli ultimi pacchetti ridistribuibili di Microsoft Visual C++ 2015–2022 x64"
"EN": "OneDrive",
"RU": "OneDrive",
"DE": "OneDrive",
"UA": "OneDrive",
"IT": "OneDrive"
},
"Description": {
"EN": "The Microsoft Visual C++ Redistributable Packages 2015–2022 x64 will be downloaded from the Microsoft resource (the internet connection required) and installed silently. Visual Studio versions since Visual Studio 2015 share the same redistributable files.",
"RU": "Пакеты Visual C++ Redistributable 2015–2022 x64 будут скачаны с ресурса Microsoft (необходим доступ в интернет) и установлены в тихом режиме. Начиная с Visual Studio 2015, распространяемые компоненты C++ используют одни и те же файлы",
"DE": "Microsoft Visual C++ Redistributable Packages 2015–2022 x64 wird vom Microsoft-Website heruntergeladen (eine Internetverbindung ist erforderlich) und im Hintergrund installiert. Die verteilte C++-Komponenten verwenden die gleichen Redistributions-Dateien",
"UA": "Пакети Visual C++ Redistributable 2015–2022 x64 будуть завантажені з ресурсу Microsoft (необхідний доступ до Інтернету) та встановлені в тихому режимі. Починаючи з Visual Studio 2015, компоненти C++, що розповсюджуються, використовують одні і ті ж файли",
"IT": "La Microsoft Visual C++ Redistributable Packages 2015–2022 x64 Verrà scaricato dai server Microsoft (la connessione Internet è richiesta) e installali in silenziosamente. Visual Studio Versioni da Visual Studio 2015 Condividi gli stessi file."
"EN": "",
"RU": "",
"DE": "",
"UA": "",
"IT": ""
},
"Type": "MsCppPackageButtonGroup",
"Type": "OneDriveButtonGroup",
"Tag": "System",
"ChildElements": [
{
"Id": 354,
"Id": 351,
"ChildHeader": {
"EN": "Install",
"RU": "Установить",
Expand All @@ -2899,7 +2899,7 @@
"Type": "Button"
},
{
"Id": 355,
"Id": 352,
"ChildHeader": {
"EN": "Uninstall",
"RU": "Удалить",
Expand All @@ -2922,26 +2922,26 @@
"Windows11Supported": true
},
{
"Id": 350,
"Id": 353,
"Header": {
"EN": "OneDrive",
"RU": "OneDrive",
"DE": "OneDrive",
"UA": "OneDrive",
"IT": "OneDrive"
"EN": "The latest Microsoft Visual C++ Redistributable Packages 2015–2022 x64",
"RU": "Последняя версия распространяемых пакетов Microsoft Visual C++ 2015–2022 x64",
"DE": "Die neuesten Microsoft Visual C++ Redistributable Pakete 2015-2022 x64",
"UA": "Остання версія розповсюджуваних пакетів Microsoft Visual C++ 2015–2022 x64",
"IT": "Gli ultimi pacchetti ridistribuibili di Microsoft Visual C++ 2015–2022 x64"
},
"Description": {
"EN": "",
"RU": "",
"DE": "",
"UA": "",
"IT": ""
"EN": "The Microsoft Visual C++ Redistributable Packages 2015–2022 x64 will be downloaded from the Microsoft resource (the internet connection required) and installed silently. Visual Studio versions since Visual Studio 2015 share the same redistributable files.",
"RU": "Пакеты Visual C++ Redistributable 2015–2022 x64 будут скачаны с ресурса Microsoft (необходим доступ в интернет) и установлены в тихом режиме. Начиная с Visual Studio 2015, распространяемые компоненты C++ используют одни и те же файлы",
"DE": "Microsoft Visual C++ Redistributable Packages 2015–2022 x64 wird vom Microsoft-Website heruntergeladen (eine Internetverbindung ist erforderlich) und im Hintergrund installiert. Die verteilte C++-Komponenten verwenden die gleichen Redistributions-Dateien",
"UA": "Пакети Visual C++ Redistributable 2015–2022 x64 будуть завантажені з ресурсу Microsoft (необхідний доступ до Інтернету) та встановлені в тихому режимі. Починаючи з Visual Studio 2015, компоненти C++, що розповсюджуються, використовують одні і ті ж файли",
"IT": "La Microsoft Visual C++ Redistributable Packages 2015–2022 x64 Verrà scaricato dai server Microsoft (la connessione Internet è richiesta) e installali in silenziosamente. Visual Studio Versioni da Visual Studio 2015 Condividi gli stessi file."
},
"Type": "OneDriveButtonGroup",
"Type": "MsCppPackageButtonGroup",
"Tag": "System",
"ChildElements": [
{
"Id": 351,
"Id": 354,
"ChildHeader": {
"EN": "Install",
"RU": "Установить",
Expand All @@ -2959,7 +2959,7 @@
"Type": "Button"
},
{
"Id": 352,
"Id": 355,
"ChildHeader": {
"EN": "Uninstall",
"RU": "Удалить",
Expand All @@ -2977,7 +2977,7 @@
"Type": "Button"
}
],
"ViewId": 352,
"ViewId": 350,
"Windows10Supported": true,
"Windows11Supported": true
},
Expand Down Expand Up @@ -4240,4 +4240,4 @@
"Windows10Supported": true,
"Windows11Supported": false
}
]
]

0 comments on commit 7cba02f

Please sign in to comment.