mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-30 11:25:20 -04:00
Custom keybinds, Default language per Library, and bugfixes (#4162)
Co-authored-by: Joseph Milazzo <josephmajora@gmail.com>
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
|
||||
public sealed record UpdateStreamPositionDto
|
||||
{
|
||||
public string StreamName { get; set; }
|
||||
public int Id { get; set; }
|
||||
public int FromPosition { get; set; }
|
||||
public int ToPosition { get; set; }
|
||||
public int Id { get; set; }
|
||||
public string StreamName { get; set; }
|
||||
/// <summary>
|
||||
/// If the <see cref="ToPosition"/> has taken into account non-visible items
|
||||
/// </summary>
|
||||
public bool PositionIncludesInvisible { get; set; }
|
||||
}
|
||||
|
||||
@@ -77,4 +77,6 @@ public sealed record LibraryDto
|
||||
public bool RemovePrefixForSortName { get; set; } = false;
|
||||
/// <inheritdoc cref="Library.InheritWebLinksFromFirstChapter"/>
|
||||
public bool InheritWebLinksFromFirstChapter { get; init; }
|
||||
/// <inheritdoc cref="Library.DefaultLanguage"/>
|
||||
public string DefaultLanguage { get; init; }
|
||||
}
|
||||
|
||||
@@ -48,6 +48,8 @@ public sealed record UpdateLibraryDto
|
||||
/// <inheritdoc cref="Library.InheritWebLinksFromFirstChapter"/>
|
||||
[Required]
|
||||
public bool InheritWebLinksFromFirstChapter { get; init; }
|
||||
/// <inheritdoc cref="Library.DefaultLanguage"/>
|
||||
public string DefaultLanguage { get; init; }
|
||||
/// <summary>
|
||||
/// What types of files to allow the scanner to pickup
|
||||
/// </summary>
|
||||
|
||||
@@ -40,6 +40,9 @@ public sealed record UserPreferencesDto
|
||||
/// <inheritdoc cref="API.Entities.AppUserPreferences.DataSaver"/>
|
||||
[Required]
|
||||
public bool DataSaver { get; set; } = false;
|
||||
/// <inheritdoc cref="API.Entities.AppUserPreferences.CustomKeyBinds"/>
|
||||
[Required]
|
||||
public Dictionary<KeyBindTarget, IList<KeyBind>> CustomKeyBinds { get; set; } = [];
|
||||
|
||||
/// <inheritdoc cref="API.Entities.AppUserPreferences.AniListScrobblingEnabled"/>
|
||||
public bool AniListScrobblingEnabled { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user