Fixed plugin, added 0 zero (15 minutes) option for pruning.
This commit is contained in:
@@ -293,7 +293,7 @@ public sealed class Plugin : IDalamudPlugin
|
||||
clientState,
|
||||
sp.GetRequiredService<LightlessMediator>()));
|
||||
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>>(),
|
||||
s.GetRequiredService<LightlessMediator>(), pluginInterface,
|
||||
s.GetRequiredService<LightlessConfigService>(),
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user