mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-14 01:39:56 -05:00
Fix: Filesystem Platform-based Folder Buttons
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
MagnifyingGlass, Books, DownloadSimple, Folder, FolderSimple,
|
||||
SortAscending, CaretUp, CaretDown, ArrowsClockwise, Star, X, CheckSquare,
|
||||
} from "phosphor-svelte";
|
||||
import { canOpenFolder } from "$lib/core/filesystem";
|
||||
import LibraryFilters from "./LibraryFilters.svelte";
|
||||
import type { Category } from "$lib/types";
|
||||
import type { LibrarySortOption, LibrarySortDir, LibraryStatusFilter, LibraryContentFilter } from "$lib/state/library.svelte";
|
||||
@@ -165,9 +166,11 @@
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
<button class="icon-btn" title="Open downloads folder" onclick={onOpenDownloadsFolder}>
|
||||
<FolderSimple size={15} weight="bold" />
|
||||
</button>
|
||||
{#if canOpenFolder()}
|
||||
<button class="icon-btn" title="Open downloads folder" onclick={onOpenDownloadsFolder}>
|
||||
<FolderSimple size={15} weight="bold" />
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
<div class="sort-panel-wrap">
|
||||
<button
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
CaretDown, ArrowsClockwise, List, SquaresFour, FolderSimplePlus,
|
||||
Trash, DownloadSimple, X, MagnifyingGlass, Funnel, Check, FolderOpen,
|
||||
} from 'phosphor-svelte'
|
||||
import { canOpenFolder } from '$lib/core/filesystem'
|
||||
import type { Chapter, Category } from '$lib/types'
|
||||
import type { ChapterSortMode, ChapterSortDir } from './lib/chapterList'
|
||||
|
||||
@@ -275,7 +276,7 @@
|
||||
<ArrowsClockwise size={14} weight="light" class={refreshing ? 'anim-spin' : ''} />
|
||||
</button>
|
||||
|
||||
{#if downloadedCount > 0}
|
||||
{#if downloadedCount > 0 && canOpenFolder()}
|
||||
<button class="icon-btn" onclick={onOpenFolder} title="Open manga folder">
|
||||
<FolderOpen size={14} weight="light" />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user