fix: missing type

This commit is contained in:
h z
2025-02-18 16:05:37 +00:00
parent 2d0b25f65c
commit b21023ba24
3 changed files with 7 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ public partial class PoloniumTextureButton : TextureButton
set
{
PrivateTextureSetName = value;
t = GlobalRegistry.TextureSetMap.GetValueOrDefault(value, null);
TextureSet t = GlobalRegistry.TextureSetMap.GetValueOrDefault(value, null);
if (t is not null)
{
TextureNormal = t.Normal;

View File

@@ -31,7 +31,6 @@
<None Include="Package/build/$(AssemblyName).props" Pack="true" PackagePath="build" />
<None Include="Package/embedded/**/*.*" Pack="true" PackagePath="build/embedded" />
<None Include="publish" />
<None Include="build" />
<Compile Remove="Package/**/*.*"/>
</ItemGroup>
@@ -57,6 +56,7 @@
<Target Name="RestoreNoCache" BeforeTargets="Build">
<Message Text="Restoring packages with no chache" Importance="high"/>
<Exec Command="dotnet restore --no-cache"/>
</Target>
</Project>

View File

@@ -7,7 +7,6 @@ namespace Polonium;
public class PoloniumRegistry
{
public static IGlobalRegistry GlobalRegistry { get; set; }
private static PoloniumRegistry InternalInstance { get; set; }
public static PoloniumRegistry Instance => InternalInstance ??= new PoloniumRegistry();
public Config Config { get; set; }