mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 13:28:33 +00:00
Fix plugin module being case sensitive comparing guids
This commit is contained in:
parent
27d69bc1bc
commit
4936213249
@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using EmbedIO;
|
||||
@ -15,7 +16,7 @@ public class PluginsModule : WebModuleBase
|
||||
|
||||
internal PluginsModule(string baseRoute) : base(baseRoute)
|
||||
{
|
||||
_pluginEndPoints = new Dictionary<string, Dictionary<string, PluginEndPoint>>();
|
||||
_pluginEndPoints = new Dictionary<string, Dictionary<string, PluginEndPoint>>(comparer: StringComparer.InvariantCultureIgnoreCase);
|
||||
}
|
||||
|
||||
internal void AddPluginEndPoint(PluginEndPoint registration)
|
||||
|
||||
@ -56,14 +56,7 @@ public class LogsDebugViewModel : ActivatableViewModelBase
|
||||
_formatter.Format(logEvent, writer);
|
||||
string line = writer.ToString();
|
||||
|
||||
StringBuilder builder = new();
|
||||
|
||||
//hack: https://github.com/AvaloniaUI/Avalonia/issues/10913
|
||||
string paddedLine2 = line.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Aggregate(builder, (sb, s) => sb.Append(s).Append(' ', 400 - s.Length).AppendLine())
|
||||
.ToString();
|
||||
|
||||
Lines.Add(new Run(paddedLine2)
|
||||
Lines.Add(new Run(line.TrimEnd('\r', '\n') + '\n')
|
||||
{
|
||||
Foreground = logEvent.Level switch
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user