fix(app): open legacy picker at home (#39804)
Co-authored-by: Brendan Allan <git@brendonovich.dev>
This commit is contained in:
parent
7ea343cabd
commit
d3f30df180
1 changed files with 2 additions and 2 deletions
|
|
@ -57,9 +57,9 @@ export function DialogSelectDirectory(props: DialogSelectDirectoryProps) {
|
|||
const [filter, setFilter] = createSignal("")
|
||||
let list: ListRef | undefined
|
||||
|
||||
const missingBase = createMemo(() => !(sync.data.path.home || sync.data.path.directory))
|
||||
const missingHome = createMemo(() => !sync.data.path.home)
|
||||
const [fallbackPath] = createResource(
|
||||
() => (missingBase() ? true : undefined),
|
||||
() => (missingHome() ? true : undefined),
|
||||
async (): Promise<Path | undefined> => {
|
||||
if ((await sdk.protocol) !== "v1") return
|
||||
return sdk.client.path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue