mirror of https://github.com/ppy/osu
Install associations as part of initial squirrel install
This commit is contained in:
parent
eeba937686
commit
f9d257b99e
|
@ -137,9 +137,6 @@ protected override void LoadComplete()
|
|||
if (RuntimeInfo.OS == RuntimeInfo.Platform.Windows)
|
||||
LoadComponentAsync(new GameplayWinKeyBlocker(), Add);
|
||||
|
||||
if (OperatingSystem.IsWindows() && IsDeployedBuild)
|
||||
LoadComponentAsync(new WindowsAssociationManager(), Add);
|
||||
|
||||
LoadComponentAsync(new ElevatedPrivilegesChecker(), Add);
|
||||
|
||||
osuSchemeLinkIPCChannel = new OsuSchemeLinkIPCChannel(Host, this);
|
||||
|
|
|
@ -174,6 +174,7 @@ private static void setupSquirrel()
|
|||
{
|
||||
tools.CreateShortcutForThisExe();
|
||||
tools.CreateUninstallerRegistryEntry();
|
||||
WindowsAssociationManager.InstallAssociations(null);
|
||||
}, onAppUpdate: (_, tools) =>
|
||||
{
|
||||
tools.CreateUninstallerRegistryEntry();
|
||||
|
|
Loading…
Reference in New Issue