mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +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.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
@ -15,7 +16,7 @@ public class PluginsModule : WebModuleBase
|
|||||||
|
|
||||||
internal PluginsModule(string baseRoute) : base(baseRoute)
|
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)
|
internal void AddPluginEndPoint(PluginEndPoint registration)
|
||||||
|
|||||||
@ -56,14 +56,7 @@ public class LogsDebugViewModel : ActivatableViewModelBase
|
|||||||
_formatter.Format(logEvent, writer);
|
_formatter.Format(logEvent, writer);
|
||||||
string line = writer.ToString();
|
string line = writer.ToString();
|
||||||
|
|
||||||
StringBuilder builder = new();
|
Lines.Add(new Run(line.TrimEnd('\r', '\n') + '\n')
|
||||||
|
|
||||||
//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)
|
|
||||||
{
|
{
|
||||||
Foreground = logEvent.Level switch
|
Foreground = logEvent.Level switch
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user