Remove custom profiles
Instead of "custom profiles" each "reading mode" acts as a profile and has its own settings
This commit is contained in:
@@ -37,7 +37,6 @@ import { ReaderViewer } from '@/modules/reader/components/viewer/ReaderViewer.ts
|
||||
import { ReaderService } from '@/modules/reader/services/ReaderService.ts';
|
||||
import { READER_BACKGROUND_TO_COLOR } from '@/modules/reader/constants/ReaderSettings.constants.tsx';
|
||||
import { createPageData, createPagesData } from '@/modules/reader/utils/ReaderPager.utils.tsx';
|
||||
import { getReaderProfile } from '@/modules/reader/utils/ReaderSettings.utils.tsx';
|
||||
import { ReaderHotkeys } from '@/modules/reader/components/ReaderHotkeys.tsx';
|
||||
import { ReaderResumeMode, ReaderTransitionPageMode } from '@/modules/reader/types/Reader.types.ts';
|
||||
import { getInitialReaderPageIndex } from '@/modules/reader/utils/Reader.utils.ts';
|
||||
@@ -194,13 +193,7 @@ export const Reader = () => {
|
||||
defaultSettings,
|
||||
);
|
||||
|
||||
const profile = getReaderProfile(
|
||||
settingsWithDefaultProfileFallback.defaultProfile,
|
||||
settingsWithDefaultProfileFallback.profiles,
|
||||
settingsWithDefaultProfileFallback.readingModesDefaultProfile,
|
||||
settingsWithDefaultProfileFallback.readingMode.value,
|
||||
);
|
||||
|
||||
const profile = settingsWithDefaultProfileFallback.readingMode.value;
|
||||
const profileSettings = getReaderSettings(
|
||||
'global',
|
||||
{ meta: defaultSettingsMetadata! },
|
||||
|
||||
Reference in New Issue
Block a user