Removes the option to disable theme scripts

This commit is contained in:
BinaryAlley committed 2026-08-21 11:47:16 -07:00
1 parent 531450b3db
commit 15945c2e56
17 files changed
+15 -201

No files matched your search

@@ -14,11 +14,6 @@ namespace Lumina.Application.Common.Infrastructure.Themes;
/// </summary>
public interface IThemeService
{
/// <summary>
/// Gets a value indicating whether theme templates may contain script elements and theme assets may include script files.
/// </summary>
bool AllowThemeScripts { get; }
/// <summary>
/// Gets the maximum allowed size of a theme archive, in bytes.
/// </summary>
@@ -35,7 +35,7 @@ public class GetThemeSettingsQueryHandler : IQueryHandler<GetThemeSettingsQuery,
/// </returns>
public Task<Result<ThemeSettingsResponse>> HandleAsync(GetThemeSettingsQuery query, CancellationToken cancellationToken)
{
ThemeSettingsResponse response = new(_themeService.MaxArchiveBytes, _themeService.AllowThemeScripts, _themeService.DefaultThemeId);
ThemeSettingsResponse response = new(_themeService.MaxArchiveBytes, _themeService.DefaultThemeId);
return Task.FromResult(Result.From(response));
}
}