Skip to content

Commit 8bbca02

Browse files
chore: Optimized codes
1 parent df91bc3 commit 8bbca02

4 files changed

Lines changed: 3 additions & 16 deletions

File tree

src/main/DiffDisplayEffect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace LoopOverlayAssist
1212
{
13-
[VideoEffect("差分表示", new[] { "表示" }, new[] { "diff", "display" })]
13+
[VideoEffect("差分表示", ["表示"], ["diff", "display"])]
1414
public class DiffDisplayEffect : VideoEffectBase
1515
{
1616
public override string Label => "差分表示";

src/main/DiffDisplayEffectProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace LoopOverlayAssist
1313
{
1414
internal class DiffDisplayEffectProcessor : IVideoEffectProcessor, IDrawable, IDisposable
1515
{
16-
private readonly DisposeCollector disposer = new DisposeCollector();
16+
private readonly DisposeCollector disposer = new();
1717
private readonly IGraphicsDevicesAndContext devices;
1818
private readonly DiffDisplayEffect item;
1919
private readonly AffineTransform2D wrap;

src/main/LoopOverlayAssist.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
namespace LoopOverlayAssist
44
{
5-
/// <summary>
6-
/// Loop Overlay Assist Plugin Entry Point
7-
/// Implements IToolPlugin so YMM can create a dockable tool view.
8-
/// </summary>
95
public class Plugin : IPlugin
106
{
117
public string Name => "ループ差分表示アシスト";

src/main/PluginSettings.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77

88
namespace LoopOverlayAssist
99
{
10-
/// <summary>
11-
/// Plugin settings that are persisted to a JSON file
12-
/// </summary>
1310
public class PluginSettings : INotifyPropertyChanged
1411
{
1512
private static readonly string SettingsFile = Path.Combine(
1613
Path.GetDirectoryName(typeof(PluginSettings).Assembly.Location) ?? "",
1714
"settings.json"
1815
);
19-
private static readonly object SaveLock = new object();
16+
private static readonly Lock SaveLock = new();
2017

2118
private static PluginSettings? _default;
2219
public static PluginSettings Default => _default ??= Load();
@@ -27,9 +24,6 @@ public class PluginSettings : INotifyPropertyChanged
2724

2825
public event PropertyChangedEventHandler? PropertyChanged;
2926

30-
/// <summary>
31-
/// Gets or sets whether difference display is enabled
32-
/// </summary>
3327
public bool IsEnabled
3428
{
3529
get => _isEnabled;
@@ -44,9 +38,6 @@ public bool IsEnabled
4438
}
4539
}
4640

47-
/// <summary>
48-
/// Per-item enabled flags persisted in settings
49-
/// </summary>
5041
public Dictionary<string, bool> PerItemEnabled
5142
{
5243
get => _perItemEnabled ??= [];

0 commit comments

Comments
 (0)