исправлены ворнинги
This commit is contained in:
@@ -65,7 +65,7 @@ public sealed class MinintDocument
|
|||||||
public int FindColorCached(RgbaColor color)
|
public int FindColorCached(RgbaColor color)
|
||||||
{
|
{
|
||||||
var cache = EnsurePaletteCache();
|
var cache = EnsurePaletteCache();
|
||||||
return cache.TryGetValue(color, out int idx) ? idx : -1;
|
return cache.GetValueOrDefault(color, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using System;
|
|
||||||
using Minint.Core.Models;
|
using Minint.Core.Models;
|
||||||
|
|
||||||
namespace Minint.Core.Services.Impl;
|
namespace Minint.Core.Services.Impl;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Linq;
|
|
||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.Media.Imaging;
|
using Avalonia.Media.Imaging;
|
||||||
using Avalonia.Threading;
|
using Avalonia.Threading;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ using Avalonia.Controls;
|
|||||||
using Avalonia.Platform.Storage;
|
using Avalonia.Platform.Storage;
|
||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
using CommunityToolkit.Mvvm.Input;
|
using CommunityToolkit.Mvvm.Input;
|
||||||
using Minint.Core.Models;
|
|
||||||
using Minint.Core.Services;
|
using Minint.Core.Services;
|
||||||
using Minint.Core.Services.Impl;
|
using Minint.Core.Services.Impl;
|
||||||
using Minint.Infrastructure.Export;
|
using Minint.Infrastructure.Export;
|
||||||
|
|||||||
Reference in New Issue
Block a user