File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1800,7 +1800,7 @@ export class ComfyApp {
1800
1800
* @param {* } graphData A serialized graph object
1801
1801
* @param { boolean } clean If the graph state, e.g. images, should be cleared
1802
1802
*/
1803
- async loadGraphData ( graphData , clean = true ) {
1803
+ async loadGraphData ( graphData , clean = true , restore_view = true ) {
1804
1804
if ( clean !== false ) {
1805
1805
this . clean ( ) ;
1806
1806
}
@@ -1836,7 +1836,7 @@ export class ComfyApp {
1836
1836
1837
1837
try {
1838
1838
this . graph . configure ( graphData ) ;
1839
- if ( this . enableWorkflowViewRestore . value && graphData . extra ?. ds ) {
1839
+ if ( restore_view && this . enableWorkflowViewRestore . value && graphData . extra ?. ds ) {
1840
1840
this . canvas . ds . offset = graphData . extra . ds . offset ;
1841
1841
this . canvas . ds . scale = graphData . extra . ds . scale ;
1842
1842
}
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ class ComfyList {
228
228
$el ( "button" , {
229
229
textContent : "Load" ,
230
230
onclick : async ( ) => {
231
- await app . loadGraphData ( item . prompt [ 3 ] . extra_pnginfo . workflow ) ;
231
+ await app . loadGraphData ( item . prompt [ 3 ] . extra_pnginfo . workflow , true , false ) ;
232
232
if ( item . outputs ) {
233
233
app . nodeOutputs = item . outputs ;
234
234
}
You can’t perform that action at this time.
0 commit comments