mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-11 13:19:24 -03:00
fix(recipe): reimport data loss, local file support, and scroll bugs
- Add local file reimport support via _do_reimport_from_local - Validate source_path BEFORE deleting old recipe (prevent data loss) - Move delete_recipe after save_recipe (safe ordering) - Preserve folder location, NSFW level, and carry over user edits - Remove old timestamp preservation (use current time) - Add scrollTop reset in resetAndReloadWithVirtualScroll - Only reload on successful bulk reimport (avoid empty grid) - Disable preserveScroll for both single and bulk reimport
This commit is contained in:
@@ -213,6 +213,8 @@ export async function resetAndReloadWithVirtualScroll(options = {}) {
|
||||
|
||||
if (scrollSnapshot) {
|
||||
await restoreScrollPosition(scrollSnapshot);
|
||||
} else if (state.virtualScroller?.scrollContainer) {
|
||||
state.virtualScroller.scrollContainer.scrollTop = 0;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user