Add option to disable middle click to add reroute
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user