Add option to disable middle click to add reroute

This commit is contained in:
pythongosssss
2023-09-08 19:23:14 +01:00
parent d09a4e244e
commit 6da3a3469c
+19
View File
@@ -0,0 +1,19 @@
import { app } from "../../../scripts/app.js";
const id = "pysssss.MiddleClickAddDefaultNode";
const ext = {
name: id,
async setup(app) {
app.ui.settings.addSetting({
id,
name: "🐍 Middle click slot to add reroute",
defaultValue: true,
type: "boolean",
onChange(value) {
LiteGraph.middle_click_slot_add_default_node = !!value;
},
});
},
};
app.registerExtension(ext);