diff --git a/packages/app-lib/src/api/instance/export_mrpack.rs b/packages/app-lib/src/api/instance/export_mrpack.rs index 74294221e..5c579358e 100644 --- a/packages/app-lib/src/api/instance/export_mrpack.rs +++ b/packages/app-lib/src/api/instance/export_mrpack.rs @@ -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] = &[ diff --git a/packages/ui/src/components/base/FileTreeSelect.vue b/packages/ui/src/components/base/FileTreeSelect.vue index 1437bbecf..2fe2f6ab3 100644 --- a/packages/ui/src/components/base/FileTreeSelect.vue +++ b/packages/ui/src/components/base/FileTreeSelect.vue @@ -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) } }