File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ function bindMainControls() {
126126 initializing = false ;
127127 }
128128
129+ robopaint . api . bindCreateEndpoints ( ) ;
130+
129131 setModal ( false ) ;
130132 } ) ;
131133
Original file line number Diff line number Diff line change @@ -31,7 +31,11 @@ robopaint.api.print = {
3131var printDisabledMessage = 'The SVG import API is currently disabled. Enable it in settings and then click the button in the RoboPaint GUI.' ;
3232
3333// Trigger to create all endpoints when endpoint creation is ready
34+ robopaint . api . endpointsBound = false
3435robopaint . api . bindCreateEndpoints = function ( ) {
36+ if ( robopaint . api . endpointsBound ) return ; // Only bind endpoints ONCE
37+ robopaint . api . endpointsBound = true ;
38+
3539 /**
3640 * `robopaint/v1/print` endpoint
3741 * GET - List print queue and current status
You can’t perform that action at this time.
0 commit comments