mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
fix(BulkManager): prevent initialization on recipes page to avoid unnecessary processing
This commit is contained in:
@@ -54,13 +54,15 @@ export class AppCore {
|
|||||||
window.headerManager = new HeaderManager();
|
window.headerManager = new HeaderManager();
|
||||||
initTheme();
|
initTheme();
|
||||||
initBackToTop();
|
initBackToTop();
|
||||||
|
|
||||||
// Initialize the bulk manager
|
|
||||||
bulkManager.initialize();
|
|
||||||
|
|
||||||
// Initialize bulk context menu
|
// Initialize the bulk manager and context menu only if not on recipes page
|
||||||
const bulkContextMenu = new BulkContextMenu();
|
if (state.currentPageType !== 'recipes') {
|
||||||
bulkManager.setBulkContextMenu(bulkContextMenu);
|
bulkManager.initialize();
|
||||||
|
|
||||||
|
// Initialize bulk context menu
|
||||||
|
const bulkContextMenu = new BulkContextMenu();
|
||||||
|
bulkManager.setBulkContextMenu(bulkContextMenu);
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize the example images manager
|
// Initialize the example images manager
|
||||||
exampleImagesManager.initialize();
|
exampleImagesManager.initialize();
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ export class BulkManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialize() {
|
initialize() {
|
||||||
|
// Do not initialize on recipes page
|
||||||
|
if (state.currentPageType === 'recipes') return;
|
||||||
|
|
||||||
// Register with event manager for coordinated event handling
|
// Register with event manager for coordinated event handling
|
||||||
this.registerEventHandlers();
|
this.registerEventHandlers();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user