Gallery view persistence (#1105)

* Persist gallery image view separately from primary image view
This commit is contained in:
InfiniteTF
2021-03-01 02:10:05 +01:00
committed by GitHub
parent 7e0db2aad4
commit 01da28010d
16 changed files with 101 additions and 46 deletions

View File

@@ -7,7 +7,7 @@ import {
SlimStudioDataFragment,
} from "src/core/generated-graphql";
import { useStudiosList } from "src/hooks";
import { showWhenSelected } from "src/hooks/ListHook";
import { showWhenSelected, PersistanceLevel } from "src/hooks/ListHook";
import { ListFilterModel } from "src/models/list-filter/filter";
import { DisplayMode } from "src/models/list-filter/types";
import { queryFindStudios, useStudiosDestroy } from "src/core/StashService";
@@ -131,7 +131,7 @@ export const StudioList: React.FC<IStudioList> = ({
addKeybinds,
otherOperations,
selectable: true,
persistState: !fromParent,
persistState: !fromParent ? PersistanceLevel.ALL : PersistanceLevel.NONE,
renderDeleteDialog,
});