Skip to content

Commit

Permalink
oops the icon isn't used in release builds....
Browse files Browse the repository at this point in the history
  • Loading branch information
Azyyyyyy committed Oct 4, 2019
1 parent 3d74197 commit 3492d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions MultiRPC/JsonClasses/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ public static Task<Theme> Load(string filepath)
$"{App.Text.SomethingHappenedWhile} {App.Text.Getting} {filepath} {App.Text.ThemeMetadata}");
}

#if DEBUG
if (theme.ThemeMetadata.MultiRPCVersion >= Version.SysVersionToMultiVersion(Assembly.GetExecutingAssembly().GetName().Version))
{
#if DEBUG
if (iconEntry != null)
{
try
Expand All @@ -165,6 +165,7 @@ public static Task<Theme> Load(string filepath)
$"{App.Text.SomethingHappenedWhile} {App.Text.Getting} {filepath} {App.Text.ThemeIcons}");
}
}
#endif
if (iconsEntry != null)
{
try
Expand All @@ -179,13 +180,11 @@ public static Task<Theme> Load(string filepath)
}
}
}
#endif
}
else
{
App.Logging.Application($"{filepath} {App.Text.DoesntExist}!!!");
}
//Icons.xaml

return Task.FromResult(theme);
}
Expand Down
3 changes: 1 addition & 2 deletions MultiRPC/MultiRPC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -50,7 +51,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<LangVersion>8.0</LangVersion>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Expand Down Expand Up @@ -82,7 +82,6 @@
<SignManifests>true</SignManifests>
<Prefer32Bit>false</Prefer32Bit>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
Expand Down

0 comments on commit 3492d8c

Please sign in to comment.