fix: prepr

This commit is contained in:
Calum H. (IMB11)
2026-07-31 08:10:22 +01:00
parent 30783e22ad
commit 90a5ff2e6d
2 changed files with 10 additions and 16 deletions
@@ -21,8 +21,13 @@ use std::time::UNIX_EPOCH;
use tokio::fs::File;
use tokio_util::compat::FuturesAsyncWriteCompatExt;
const DEFAULT_SELECTED_EXPORT_PATH_PREFIXES: &[&str] =
&["mods", "datapacks", "resourcepacks", "shaderpacks", "config"];
const DEFAULT_SELECTED_EXPORT_PATH_PREFIXES: &[&str] = &[
"mods",
"datapacks",
"resourcepacks",
"shaderpacks",
"config",
];
const EXPORT_CANDIDATE_METADATA_CONCURRENCY: usize = 32;
const NEVER_EXPORTABLE_PATH_PREFIXES: &[&str] = &[
@@ -293,8 +293,7 @@ const props = withDefaults(
)
const emit = defineEmits<{
(e: 'update:modelValue', value: string[]): void
(e: 'update:excludedPaths', value: string[]): void
(e: 'update:modelValue' | 'update:excludedPaths', value: string[]): void
(e: 'navigate', path: string): void
}>()
@@ -698,20 +697,10 @@ function toggleAllVisible(selected: boolean) {
const nextExcludedPaths = new Set(excludedPaths.value)
if (currentPath.value) {
applySelection(
nextSelectedPaths,
nextExcludedPaths,
currentPath.value,
selected,
)
applySelection(nextSelectedPaths, nextExcludedPaths, currentPath.value, selected)
} else {
for (const entry of visibleSelectableEntries.value) {
applySelection(
nextSelectedPaths,
nextExcludedPaths,
entry.path,
selected,
)
applySelection(nextSelectedPaths, nextExcludedPaths, entry.path, selected)
}
}