diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 3ba13e0..0086358 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1 +1 @@ -blank_issues_enabled: false +blank_issues_enabled: true diff --git a/js/shared.js b/js/shared.js index e9d4fb8..bfc4922 100644 --- a/js/shared.js +++ b/js/shared.js @@ -29,4 +29,3 @@ export const deferred_actions = new Deferred() export const shared = new Shared() - diff --git a/js/use_everywhere.js b/js/use_everywhere.js index c9a9486..945c0db 100644 --- a/js/use_everywhere.js +++ b/js/use_everywhere.js @@ -240,6 +240,10 @@ app.registerExtension({ return await shared.graphAnalyser.graph_to_prompt( ); } else { Logger.log_problem("graphToPrompt called when !prompt_being_queued - why?") + if (app.ui.settings.getSettingValue("Use Everywhere.Options.always_modify_graph")) { + Logger.log_info("always_modify_graph is set, so doing so anyway") + return await shared.graphAnalyser.graph_to_prompt( ); + } return await original_graphToPrompt.apply(app, arguments); } } diff --git a/js/use_everywhere_settings.js b/js/use_everywhere_settings.js index 5c9ff92..3cefb8c 100644 --- a/js/use_everywhere_settings.js +++ b/js/use_everywhere_settings.js @@ -92,6 +92,14 @@ const _SETTINGS = [ tooltip: "Turn off workflow validation (which tends to replace UE links with real ones)", onChange: settingsCache.onSettingChange, }, + { + id: "Use Everywhere.Options.always_modify_graph", + name: "Always modify graph", + type: "boolean", + defaultValue: false, + tooltip: "If turned on, the UE modifications will apply even if the trigger is unknown. This will enable API exports, but may cause incompatibility with other nodes.", + onChange: settingsCache.onSettingChange, + }, { id: "Use Everywhere.Options.use_output_name", name: "When connecting, use the output slot's name as the input name",