Browse Source

Linux specific fixes

flabbet 2 tuần trước cách đây
mục cha
commit
7b83726f6f

+ 1 - 1
src/PixiEditor.Extensions.Runtime/ExtensionLoader.cs

@@ -316,7 +316,7 @@ public class ExtensionLoader
                 throw new ForbiddenUniqueNameExtension();
             }*/
 
-            if (!IsAdditionalContentInstalled(fixedUniqueName))
+            if (!IsAdditionalContentInstalled(metadata.UniqueName))
             {
                 return false;
             }

+ 2 - 1
src/PixiEditor/Views/MainWindow.axaml.cs

@@ -22,6 +22,7 @@ using PixiEditor.Initialization;
 using PixiEditor.Models.AnalyticsAPI;
 using PixiEditor.Models.ExceptionHandling;
 using PixiEditor.Models.IO;
+using PixiEditor.OperatingSystem;
 using PixiEditor.Platform;
 using PixiEditor.ViewModels.SubViewModels;
 using PixiEditor.Views.Main;
@@ -67,7 +68,7 @@ internal partial class MainWindow : Window
         
         extLoader = extensionLoader;
         
-        AsyncImageLoader.ImageLoader.AsyncImageLoader =
+        AsyncImageLoader.ImageLoader.AsyncImageLoader = IOperatingSystem.Current.IsLinux ? new BaseWebImageLoader() :
             new DiskCachedWebImageLoader(Path.Combine(Paths.TempFilesPath, "ImageCache"));
 
         services = ClassicDesktopEntry.Active.Services;