Reverse IssueType ordering

Reversed both in the enum and where it's displayed, so ends up the same in the end.
This commit is contained in:
Naxess
2021-04-12 15:49:13 +02:00
parent 1c69829ad4
commit 008dbc7dd6
2 changed files with 7 additions and 7 deletions

View File

@ -4,22 +4,22 @@
namespace osu.Game.Rulesets.Edit.Checks.Components namespace osu.Game.Rulesets.Edit.Checks.Components
{ {
/// <summary> /// <summary>
/// The type, or severity, of an issue. This decides its priority. /// The type, or severity, of an issue.
/// </summary> /// </summary>
public enum IssueType public enum IssueType
{ {
/// <summary> A must-fix in the vast majority of cases. </summary> /// <summary> A must-fix in the vast majority of cases. </summary>
Problem = 3, Problem,
/// <summary> A possible mistake. Often requires critical thinking. </summary> /// <summary> A possible mistake. Often requires critical thinking. </summary>
Warning = 2, Warning,
// TODO: Try/catch all checks run and return error templates if exceptions occur. // TODO: Try/catch all checks run and return error templates if exceptions occur.
/// <summary> An error occurred and a complete check could not be made. </summary> /// <summary> An error occurred and a complete check could not be made. </summary>
Error = 1, Error,
// TODO: Negligible issues should be hidden by default. // TODO: Negligible issues should be hidden by default.
/// <summary> A possible mistake so minor/unlikely that it can often be safely ignored. </summary> /// <summary> A possible mistake so minor/unlikely that it can often be safely ignored. </summary>
Negligible = 0, Negligible,
} }
} }

View File

@ -129,8 +129,8 @@ namespace osu.Game.Screens.Edit.Verify
private void refresh() private void refresh()
{ {
table.Issues = beatmapVerifier.Run(Beatmap) table.Issues = beatmapVerifier.Run(Beatmap)
.OrderByDescending(issue => issue.Template.Type) .OrderBy(issue => issue.Template.Type)
.ThenByDescending(issue => issue.Check.Metadata.Category); .ThenBy(issue => issue.Check.Metadata.Category);
} }
} }
} }