mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-02-04 02:43:32 +00:00
Workshop - Fix misalignment in EntryTypes causing plugins to not load
Core - Downgrade SkiaSharp back to what Avalonia likes, 2.88.9
This commit is contained in:
parent
7985cde6a3
commit
efd893c209
@ -41,7 +41,7 @@ public static class Constants
|
|||||||
/// The full path to the Artemis data folder
|
/// The full path to the Artemis data folder
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
public static readonly string DataFolder = Path.Combine(BaseFolder, "Artemis-dev");
|
public static readonly string DataFolder = Path.Combine(BaseFolder, "Artemis");
|
||||||
#else
|
#else
|
||||||
public static readonly string DataFolder = Path.Combine(BaseFolder, "Artemis");
|
public static readonly string DataFolder = Path.Combine(BaseFolder, "Artemis");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -225,7 +225,6 @@ public class InstalledEntry : CorePropertyChanged
|
|||||||
IsOfficial = Entity.IsOfficial;
|
IsOfficial = Entity.IsOfficial;
|
||||||
Name = Entity.Name;
|
Name = Entity.Name;
|
||||||
Summary = Entity.Summary;
|
Summary = Entity.Summary;
|
||||||
EntryType = (EntryType) Entity.EntryType;
|
|
||||||
Downloads = Entity.Downloads;
|
Downloads = Entity.Downloads;
|
||||||
CreatedAt = Entity.CreatedAt;
|
CreatedAt = Entity.CreatedAt;
|
||||||
LatestReleaseId = Entity.LatestReleaseId;
|
LatestReleaseId = Entity.LatestReleaseId;
|
||||||
@ -236,14 +235,21 @@ public class InstalledEntry : CorePropertyChanged
|
|||||||
InstalledAt = Entity.InstalledAt;
|
InstalledAt = Entity.InstalledAt;
|
||||||
AutoUpdate = Entity.AutoUpdate;
|
AutoUpdate = Entity.AutoUpdate;
|
||||||
|
|
||||||
|
// Avoiding a cast here, the enum has shifted around before as it is generated from the GraphQL schema
|
||||||
|
EntryType = Entity.EntryType switch
|
||||||
|
{
|
||||||
|
0 => EntryType.Plugin,
|
||||||
|
1 => EntryType.Profile,
|
||||||
|
2 => EntryType.Layout,
|
||||||
|
_ => EntryType
|
||||||
|
};
|
||||||
|
|
||||||
_metadata = Entity.Metadata != null ? new Dictionary<string, JsonNode>(Entity.Metadata) : [];
|
_metadata = Entity.Metadata != null ? new Dictionary<string, JsonNode>(Entity.Metadata) : [];
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void Save()
|
internal void Save()
|
||||||
{
|
{
|
||||||
Entity.EntryId = Id;
|
Entity.EntryId = Id;
|
||||||
Entity.EntryType = (int) EntryType;
|
|
||||||
|
|
||||||
Entity.Author = Author;
|
Entity.Author = Author;
|
||||||
Entity.IsOfficial = IsOfficial;
|
Entity.IsOfficial = IsOfficial;
|
||||||
Entity.Name = Name;
|
Entity.Name = Name;
|
||||||
@ -258,6 +264,15 @@ public class InstalledEntry : CorePropertyChanged
|
|||||||
Entity.InstalledAt = InstalledAt;
|
Entity.InstalledAt = InstalledAt;
|
||||||
Entity.AutoUpdate = AutoUpdate;
|
Entity.AutoUpdate = AutoUpdate;
|
||||||
|
|
||||||
|
// Avoiding a cast here, the enum has shifted around before as it is generated from the GraphQL schema
|
||||||
|
Entity.EntryType = EntryType switch
|
||||||
|
{
|
||||||
|
EntryType.Plugin => 0,
|
||||||
|
EntryType.Profile => 1,
|
||||||
|
EntryType.Layout => 2,
|
||||||
|
_ => Entity.EntryType
|
||||||
|
};
|
||||||
|
|
||||||
Entity.Metadata = new Dictionary<string, JsonNode>(_metadata);
|
Entity.Metadata = new Dictionary<string, JsonNode>(_metadata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -59,8 +59,8 @@
|
|||||||
<PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" />
|
<PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" />
|
||||||
<PackageVersion Include="Serilog.Sinks.Debug" Version="3.0.0" />
|
<PackageVersion Include="Serilog.Sinks.Debug" Version="3.0.0" />
|
||||||
<PackageVersion Include="Serilog.Sinks.File" Version="7.0.0" />
|
<PackageVersion Include="Serilog.Sinks.File" Version="7.0.0" />
|
||||||
<PackageVersion Include="SkiaSharp" Version="3.119.1" />
|
<PackageVersion Include="SkiaSharp" Version="2.88.9" />
|
||||||
<PackageVersion Include="SkiaSharp.Vulkan.SharpVk" Version="3.119.1" />
|
<PackageVersion Include="SkiaSharp.Vulkan.SharpVk" Version="2.88.9" />
|
||||||
<PackageVersion Include="Splat.DryIoc" Version="17.1.1" />
|
<PackageVersion Include="Splat.DryIoc" Version="17.1.1" />
|
||||||
<PackageVersion Include="StrawberryShake.Server" Version="15.1.11" />
|
<PackageVersion Include="StrawberryShake.Server" Version="15.1.11" />
|
||||||
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="8.15.0" />
|
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="8.15.0" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user