Fix changing reader settings from desktop quick settings

Regression 63ebfd120e
This commit is contained in:
schroda
2026-03-15 14:43:40 +01:00
parent 32fb7b0909
commit 54086f1c30

View File

@@ -331,7 +331,7 @@ export class ReaderService {
const metaValue = JSON.stringify(value); const metaValue = JSON.stringify(value);
const chunkedMeta = MetadataChunker.chunkValue(key, metaValue); const chunkedMeta = MetadataChunker.chunkValue(key, metaValue);
const existingMeta = this.getMetadataWithUnmodifiedKey(manga, metaHolderType, key, isGlobalSetting); const existingMeta = ReaderService.getMetadataWithUnmodifiedKey(manga, metaHolderType, key, isGlobalSetting);
const keysToDelete = MetadataChunker.computeChunkDeletions(existingMeta, key, chunkedMeta.length - 1); const keysToDelete = MetadataChunker.computeChunkDeletions(existingMeta, key, chunkedMeta.length - 1);
@@ -411,7 +411,7 @@ export class ReaderService {
const key = getMetadataKey(setting, profile !== undefined ? [profile?.toString()] : undefined); const key = getMetadataKey(setting, profile !== undefined ? [profile?.toString()] : undefined);
const existingMeta = this.getMetadataWithUnmodifiedKey(manga, metaHolderType, key, isGlobalSetting); const existingMeta = ReaderService.getMetadataWithUnmodifiedKey(manga, metaHolderType, key, isGlobalSetting);
const keysToDelete = MetadataChunker.computeChunkDeletions(existingMeta, key, 0); const keysToDelete = MetadataChunker.computeChunkDeletions(existingMeta, key, 0);