From dbd987deadd1799815d307edff79c821a0466bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Tue, 21 Sep 2021 22:13:11 +0100 Subject: [PATCH 1/2] Ensure correct order of issues --- UVtools.Core/Layers/MainIssue.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UVtools.Core/Layers/MainIssue.cs b/UVtools.Core/Layers/MainIssue.cs index 9a5801b..14ca0dd 100644 --- a/UVtools.Core/Layers/MainIssue.cs +++ b/UVtools.Core/Layers/MainIssue.cs @@ -11,7 +11,6 @@ using System.Collections; using System.Collections.Generic; using System.Drawing; using System.Linq; -using MoreLinq; using UVtools.Core.Extensions; namespace UVtools.Core.Layers @@ -125,7 +124,7 @@ namespace UVtools.Core.Layers BoundingRectangle = boundingRectangle; Area = area; - Childs = issues.ToArray(); + Childs = issues.OrderBy(issue => issue.LayerIndex).ToArray(); Sort(); } From ec67e2f2305639b985e3038554d233a09c42c505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Tue, 21 Sep 2021 22:13:24 +0100 Subject: [PATCH 2/2] Add the missing value labels --- UVtools.Core/Managers/IssueManager.cs | 7 +- UVtools.WPF/Assets/Styles/Styles.xaml | 16 ++ UVtools.WPF/Windows/SettingsWindow.axaml | 210 ++++++++++++----------- 3 files changed, 125 insertions(+), 108 deletions(-) diff --git a/UVtools.Core/Managers/IssueManager.cs b/UVtools.Core/Managers/IssueManager.cs index c84e2fc..18366e6 100644 --- a/UVtools.Core/Managers/IssueManager.cs +++ b/UVtools.Core/Managers/IssueManager.cs @@ -151,7 +151,7 @@ namespace UVtools.Core.Managers List GetResult() { - return result.OrderBy(issue => issue.Type).ThenBy(issue => issue.StartLayerIndex).ThenByDescending(issue => issue.Area).ToList(); + return result.OrderBy(mainIssue => mainIssue.Type).ThenBy(issue => issue.StartLayerIndex).ThenByDescending(issue => issue.Area).ToList(); } void GenerateAirMap(IInputArray input, IInputOutputArray output, VectorOfVectorOfPoint externals) @@ -966,10 +966,7 @@ namespace UVtools.Core.Managers var mainIssue = new MainIssue(MainIssue.IssueType.SuctionCup, group); if ((decimal)mainIssue.TotalHeight >= resinTrapConfig.RequiredHeightToConsiderSuctionCup) { AddIssue(mainIssue); - } else - { - mainIssue = null; - } + } } } }); diff --git a/UVtools.WPF/Assets/Styles/Styles.xaml b/UVtools.WPF/Assets/Styles/Styles.xaml index e38012e..fc27179 100644 --- a/UVtools.WPF/Assets/Styles/Styles.xaml +++ b/UVtools.WPF/Assets/Styles/Styles.xaml @@ -111,6 +111,14 @@ + + + +