1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Standardise using declaration

This commit is contained in:
Susko3 2024-02-07 22:26:21 +01:00
parent 7f5dedc118
commit 3419b8ffa8

View File

@ -130,17 +130,15 @@ namespace osu.Desktop.Windows
/// </summary>
private static void updateAssociations()
{
using (var classes = Registry.CurrentUser.OpenSubKey(SOFTWARE_CLASSES, writable: true))
{
if (classes == null)
return;
using var classes = Registry.CurrentUser.OpenSubKey(SOFTWARE_CLASSES, true);
if (classes == null)
return;
foreach (var association in file_associations)
association.Install(classes, EXE_PATH);
foreach (var association in file_associations)
association.Install(classes, EXE_PATH);
foreach (var association in uri_associations)
association.Install(classes, EXE_PATH);
}
foreach (var association in uri_associations)
association.Install(classes, EXE_PATH);
}
private static void updateDescriptions(LocalisationManager? localisation)