From b444782b760747b6b31b23292821ec52fd127bca Mon Sep 17 00:00:00 2001 From: cake Date: Fri, 5 Dec 2025 13:36:12 +0100 Subject: [PATCH] Fixed plugin, added 0 zero (15 minutes) option for pruning. --- LightlessSync/Plugin.cs | 2 +- LightlessSync/UI/SyncshellAdminUI.cs | 25 ++++++++++++++----------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/LightlessSync/Plugin.cs b/LightlessSync/Plugin.cs index b61ad55..8f6031c 100644 --- a/LightlessSync/Plugin.cs +++ b/LightlessSync/Plugin.cs @@ -293,7 +293,7 @@ public sealed class Plugin : IDalamudPlugin clientState, sp.GetRequiredService())); collection.AddSingleton(); - collection.AddSingleton(s => new LightFinderScannerService(s.GetRequiredService>(), framework, s.GetRequiredService(), s.GetRequiredService(), s.GetRequiredService(), s.GetRequiredService())); + collection.AddSingleton(s => new LightFinderScannerService(s.GetRequiredService>(), framework, s.GetRequiredService(), s.GetRequiredService(), s.GetRequiredService(), s.GetRequiredService())); collection.AddSingleton((s) => new LightFinderPlateHandler(s.GetRequiredService>(), s.GetRequiredService(), pluginInterface, s.GetRequiredService(), diff --git a/LightlessSync/UI/SyncshellAdminUI.cs b/LightlessSync/UI/SyncshellAdminUI.cs index 0eef2e5..45b97a6 100644 --- a/LightlessSync/UI/SyncshellAdminUI.cs +++ b/LightlessSync/UI/SyncshellAdminUI.cs @@ -324,17 +324,20 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase + UiSharedService.TooltipSeparator + "Note: this check excludes pinned users and moderators of this Syncshell."); ImGui.SameLine(); ImGui.SetNextItemWidth(150); - _uiSharedService.DrawCombo("Day(s) of inactivity", [1, 3, 7, 14, 30, 90], (count) => - { - return count + " day(s)"; - }, - (selected) => - { - _pruneDays = selected; - _pruneTestTask = null; - _pruneTask = null; - }, - _pruneDays); + _uiSharedService.DrawCombo( + "Day(s) of inactivity", + [0, 1, 3, 7, 14, 30, 90], + (count) => + { + return count == 0 ? "15 minute(s)" : count + " day(s)"; + }, + (selected) => + { + _pruneDays = selected; + _pruneTestTask = null; + _pruneTask = null; + }, + _pruneDays); if (_pruneTestTask != null) {