Adds a theme caching toggle to the user settings

This commit is contained in:
BinaryAlley committed 2026-08-21 04:04:54 -07:00
1 parent 60b551558f
commit 3da7167538
43 files changed
+1611 -56

No files matched your search

@@ -10,8 +10,10 @@ namespace Lumina.Application.Core.UsersManagement.Settings.Commands.UpdateUserSe
/// <param name="IsPaginationEnabled">Whether pagination is enabled for the user, or not.</param>
/// <param name="ItemsPerPage">The number of library items displayed per page when pagination is enabled.</param>
/// <param name="IgnoreThePrefixForAlphaPicker">Whether the "The" prefix of library item titles is ignored by the alpha picker, or not.</param>
/// <param name="IsThemeCachingEnabled">Whether the theme data served to this user is cached, or not.</param>
public record UpdateUserSettingsCommand(
bool IsPaginationEnabled,
int ItemsPerPage,
bool IgnoreThePrefixForAlphaPicker
bool IgnoreThePrefixForAlphaPicker,
bool IsThemeCachingEnabled
) : ICommand;
@@ -72,7 +72,8 @@ public class UpdateUserSettingsCommandHandler : ICommandHandler<UpdateUserSettin
UserId.Create(userId),
command.IsPaginationEnabled,
command.ItemsPerPage,
command.IgnoreThePrefixForAlphaPicker);
command.IgnoreThePrefixForAlphaPicker,
command.IsThemeCachingEnabled);
if (createSettingsResult.IsFailure)
return createSettingsResult.Errors;
@@ -90,7 +91,8 @@ public class UpdateUserSettingsCommandHandler : ICommandHandler<UpdateUserSettin
Result<Updated> updateSettingsResult = toDomainEntityResult.Value.UpdateSettings(
command.IsPaginationEnabled,
command.ItemsPerPage,
command.IgnoreThePrefixForAlphaPicker);
command.IgnoreThePrefixForAlphaPicker,
command.IsThemeCachingEnabled);
if (updateSettingsResult.IsFailure)
return updateSettingsResult.Errors;