mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-30 21:09:53 +00:00
Fix theme toggle (#200)
* Use builtin event on color change * Fix theme toggle * Update test expectations [skip ci] --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -7,8 +7,6 @@ import { TaskItem } from "@/types/apiTypes";
|
||||
|
||||
export const ComfyDialog = _ComfyDialog;
|
||||
|
||||
export type LiteGraphNodeSearchSettingEvent = CustomEvent<boolean>;
|
||||
|
||||
type Position2D = {
|
||||
x: number;
|
||||
y: number;
|
||||
@@ -434,11 +432,6 @@ export class ComfyUI {
|
||||
value = value || "default";
|
||||
const useLitegraphSearch = value === "litegraph (legacy)";
|
||||
app.canvas.allow_searchbox = useLitegraphSearch;
|
||||
document.dispatchEvent(
|
||||
new CustomEvent("comfy:setting:litegraph-node-search", {
|
||||
detail: useLitegraphSearch,
|
||||
})
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user