Browse Source

ms store args

Krzysztof Krysiński 1 tháng trước cách đây
mục cha
commit
2244b68296

+ 2 - 2
src/PixiEditor.Platform.MSStore/MicrosoftStorePlatform.cs

@@ -5,9 +5,9 @@ namespace PixiEditor.Platform.MSStore;
 
 public sealed class MicrosoftStorePlatform : IPlatform
 {
-    public MicrosoftStorePlatform(string extensionsPath, string apiUrl)
+    public MicrosoftStorePlatform(string extensionsPath, string apiUrl, string? apiKey)
     {
-        var provider = new PixiAuthIdentityProvider(apiUrl);
+        var provider = new PixiAuthIdentityProvider(apiUrl, apiKey);
         IdentityProvider = provider;
         AdditionalContentProvider = new MSAdditionalContentProvider(extensionsPath, provider);
     }

+ 2 - 1
src/PixiEditor/Initialization/ClassicDesktopEntry.cs

@@ -171,7 +171,8 @@ internal class ClassicDesktopEntry
 #if STEAM || DEV_STEAM
         return new PixiEditor.Platform.Steam.SteamPlatform();
 #elif MSIX || MSIX_DEBUG
-        return new PixiEditor.Platform.MSStore.MicrosoftStorePlatform();
+        return new PixiEditor.Platform.MSStore.MicrosoftStorePlatform(Paths.LocalExtensionPackagesPath, GetApiUrl(),
+            GetApiKey());
 #else
         return new PixiEditor.Platform.Standalone.StandalonePlatform(Paths.LocalExtensionPackagesPath, GetApiUrl(),
             GetApiKey());