Fixed plugin, added 0 zero (15 minutes) option for pruning.

This commit is contained in:
cake
2025-12-05 13:36:12 +01:00
parent feec5e8ff3
commit b444782b76
2 changed files with 15 additions and 12 deletions

View File

@@ -293,7 +293,7 @@ public sealed class Plugin : IDalamudPlugin
clientState, clientState,
sp.GetRequiredService<LightlessMediator>())); sp.GetRequiredService<LightlessMediator>()));
collection.AddSingleton<HubFactory>(); collection.AddSingleton<HubFactory>();
collection.AddSingleton(s => new LightFinderScannerService(s.GetRequiredService<ILogger<LightFinderScannerService>>(), framework, s.GetRequiredService<LightFinderService>(), s.GetRequiredService<LightlessMediator>(), s.GetRequiredService<NameplateHandler>(), s.GetRequiredService<ActorObjectService>())); collection.AddSingleton(s => new LightFinderScannerService(s.GetRequiredService<ILogger<LightFinderScannerService>>(), framework, s.GetRequiredService<LightFinderService>(), s.GetRequiredService<LightlessMediator>(), s.GetRequiredService<LightFinderPlateHandler>(), s.GetRequiredService<ActorObjectService>()));
collection.AddSingleton((s) => new LightFinderPlateHandler(s.GetRequiredService<ILogger<LightFinderPlateHandler>>(), collection.AddSingleton((s) => new LightFinderPlateHandler(s.GetRequiredService<ILogger<LightFinderPlateHandler>>(),
s.GetRequiredService<LightlessMediator>(), pluginInterface, s.GetRequiredService<LightlessMediator>(), pluginInterface,
s.GetRequiredService<LightlessConfigService>(), s.GetRequiredService<LightlessConfigService>(),

View File

@@ -324,17 +324,20 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase
+ UiSharedService.TooltipSeparator + "Note: this check excludes pinned users and moderators of this Syncshell."); + UiSharedService.TooltipSeparator + "Note: this check excludes pinned users and moderators of this Syncshell.");
ImGui.SameLine(); ImGui.SameLine();
ImGui.SetNextItemWidth(150); ImGui.SetNextItemWidth(150);
_uiSharedService.DrawCombo("Day(s) of inactivity", [1, 3, 7, 14, 30, 90], (count) => _uiSharedService.DrawCombo(
{ "Day(s) of inactivity",
return count + " day(s)"; [0, 1, 3, 7, 14, 30, 90],
}, (count) =>
(selected) => {
{ return count == 0 ? "15 minute(s)" : count + " day(s)";
_pruneDays = selected; },
_pruneTestTask = null; (selected) =>
_pruneTask = null; {
}, _pruneDays = selected;
_pruneDays); _pruneTestTask = null;
_pruneTask = null;
},
_pruneDays);
if (_pruneTestTask != null) if (_pruneTestTask != null)
{ {