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:
parent
7f5dedc118
commit
3419b8ffa8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user