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,
|
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>(),
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user