Browse Source

Hide Raw Layers tab on RELEASE Build

CPKreuz 3 years ago
parent
commit
54f5f215a6
2 changed files with 11 additions and 3 deletions
  1. 3 3
      PixiEditor/PixiEditor.csproj
  2. 8 0
      PixiEditor/Views/MainWindow.xaml.cs

+ 3 - 3
PixiEditor/PixiEditor.csproj

@@ -38,7 +38,7 @@
 
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dev Release|AnyCPU'">
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-    <DefineConstants>TRACE;UPDATE</DefineConstants>
+    <DefineConstants>TRACE;UPDATE;RELEASE</DefineConstants>
     <Optimize>True</Optimize>
   </PropertyGroup>
 
@@ -195,8 +195,8 @@
     </PackageReference>
     <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
     <PackageReference Include="PixiEditor.ColorPicker" Version="3.1.0" />
-    <PackageReference Include="PixiEditor.Parser" Version="2.0.0" />
-    <PackageReference Include="PixiEditor.Parser.Skia" Version="2.0.0" />
+    <PackageReference Include="PixiEditor.Parser" Version="2.0.0.300" />
+    <PackageReference Include="PixiEditor.Parser.Skia" Version="2.0.0.300" />
     <PackageReference Include="SkiaSharp" Version="2.80.3" />
     <PackageReference Include="System.Drawing.Common" Version="6.0.0" />
     <PackageReference Include="WriteableBitmapEx">

+ 8 - 0
PixiEditor/Views/MainWindow.xaml.cs

@@ -60,6 +60,8 @@ namespace PixiEditor
                     UpdateTaskbarIcon(null);
                 }
             });
+
+            OnReleaseBuild();
         }
 
         protected override void OnClosing(CancelEventArgs e)
@@ -80,6 +82,12 @@ namespace PixiEditor
             Application.Current.Windows.OfType<HelloTherePopup>().ToList().ForEach(x => { if (!x.IsClosing) x.Close(); });
         }
 
+        [Conditional("RELEASE")]
+        private void OnReleaseBuild()
+        {
+            rawLayerAnchorable.Hide();
+        }
+
         private void BitmapManager_DocumentChanged(object sender, Models.Events.DocumentChangedEventArgs e)
         {
             if (preferences.GetPreference("ImagePreviewInTaskbar", false))