diff --git a/osu.Desktop/Program.cs b/osu.Desktop/Program.cs index a311e42d6d..50d0f06150 100644 --- a/osu.Desktop/Program.cs +++ b/osu.Desktop/Program.cs @@ -184,7 +184,7 @@ namespace osu.Desktop var app = VelopackApp.Build(); - app.WithFirstRun(_ => isFirstRun = true); + app.OnFirstRun(_ => isFirstRun = true); if (OperatingSystem.IsWindows()) configureWindows(app); @@ -195,9 +195,9 @@ namespace osu.Desktop [SupportedOSPlatform("windows")] private static void configureWindows(VelopackApp app) { - app.WithFirstRun(_ => WindowsAssociationManager.InstallAssociations()); - app.WithAfterUpdateFastCallback(_ => WindowsAssociationManager.UpdateAssociations()); - app.WithBeforeUninstallFastCallback(_ => WindowsAssociationManager.UninstallAssociations()); + app.OnFirstRun(_ => WindowsAssociationManager.InstallAssociations()); + app.OnAfterUpdateFastCallback(_ => WindowsAssociationManager.UpdateAssociations()); + app.OnBeforeUninstallFastCallback(_ => WindowsAssociationManager.UninstallAssociations()); } } } diff --git a/osu.Desktop/osu.Desktop.csproj b/osu.Desktop/osu.Desktop.csproj index 05d5bb19fb..b0c5c953d4 100644 --- a/osu.Desktop/osu.Desktop.csproj +++ b/osu.Desktop/osu.Desktop.csproj @@ -26,7 +26,7 @@ - +