diff --git a/SLC_LayoutEditor.sln b/SLC_LayoutEditor.sln index 80bd381..70b2236 100644 --- a/SLC_LayoutEditor.sln +++ b/SLC_LayoutEditor.sln @@ -8,11 +8,14 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Production|Any CPU = Production|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {5ECF69D3-D893-4491-9B9B-8B6A892AD13F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5ECF69D3-D893-4491-9B9B-8B6A892AD13F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5ECF69D3-D893-4491-9B9B-8B6A892AD13F}.Production|Any CPU.ActiveCfg = Release|Any CPU + {5ECF69D3-D893-4491-9B9B-8B6A892AD13F}.Production|Any CPU.Build.0 = Release|Any CPU {5ECF69D3-D893-4491-9B9B-8B6A892AD13F}.Release|Any CPU.ActiveCfg = Release|Any CPU {5ECF69D3-D893-4491-9B9B-8B6A892AD13F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection diff --git a/SLC_LayoutEditor/App.xaml.cs b/SLC_LayoutEditor/App.xaml.cs index 82e48e0..589d302 100644 --- a/SLC_LayoutEditor/App.xaml.cs +++ b/SLC_LayoutEditor/App.xaml.cs @@ -42,6 +42,18 @@ public partial class App : Application, IUIManager public static DateTime SessionStart { get; set; } + public static bool IsDebugMode + { + get + { +#if DEBUG + return true; +#else + return false; +#endif + } + } + public static bool IsDesignMode => DesignerProperties.GetIsInDesignMode(new DependencyObject()); public static string DefaultEditorLayoutsPath => defaultEditorLayoutsPath; @@ -67,6 +79,7 @@ public partial class App : Application, IUIManager [STAThread] public static void Main(string[] args) { + Logger.Default.ApplyLineLimit(); #if DEBUG RunApp(args); #else @@ -89,6 +102,7 @@ public static void Main(string[] args) "This is awkward but...", MessageBoxButton.OK); } #endif + Logger.Default.ApplyLineLimit(); } public void RefreshTheme() diff --git a/SLC_LayoutEditor/Controls/AircraftLayoutsViewControl.xaml b/SLC_LayoutEditor/Controls/AircraftLayoutsViewControl.xaml index edd6a55..95dd79b 100644 --- a/SLC_LayoutEditor/Controls/AircraftLayoutsViewControl.xaml +++ b/SLC_LayoutEditor/Controls/AircraftLayoutsViewControl.xaml @@ -248,7 +248,7 @@ - -