@@ -152,8 +152,10 @@ qx.Class.define("osparc.desktop.StudyEditor", {
152152 . then ( studyData => {
153153 this . __setStudyDataInBackend ( studyData ) ;
154154
155- study . listenToChanges ( ) ;
156- study . addListener ( "updateStudyDocument" , e => this . updateStudyDocument ( e . getData ( ) ) , this ) ;
155+ if ( osparc . utils . Utils . eventDrivenPatch ( ) ) {
156+ study . listenToChanges ( ) ;
157+ study . addListener ( "updateStudyDocument" , e => this . updateStudyDocument ( e . getData ( ) ) , this ) ;
158+ }
157159
158160 this . __workbenchView . setStudy ( study ) ;
159161 this . __slideshowView . setStudy ( study ) ;
@@ -806,6 +808,11 @@ qx.Class.define("osparc.desktop.StudyEditor", {
806808
807809 // ------------------ AUTO SAVER ------------------
808810 __startAutoSaveTimer : function ( ) {
811+ if ( osparc . utils . Utils . eventDrivenPatch ( ) ) {
812+ // If event driven patch is enabled, auto save is not needed
813+ return ;
814+ }
815+
809816 // Save every 3 seconds
810817 const timer = this . __autoSaveTimer = new qx . event . Timer ( this . self ( ) . AUTO_SAVE_INTERVAL ) ;
811818 timer . addListener ( "interval" , ( ) => {
@@ -833,6 +840,11 @@ qx.Class.define("osparc.desktop.StudyEditor", {
833840
834841 // ---------------- SAVING TIMER ------------------
835842 __startSavingTimer : function ( ) {
843+ if ( osparc . utils . Utils . eventDrivenPatch ( ) ) {
844+ // If event driven patch is enabled, saving timer indicator is not needed
845+ return ;
846+ }
847+
836848 const timer = this . __savingTimer = new qx . event . Timer ( this . self ( ) . DIFF_CHECK_INTERVAL ) ;
837849 timer . addListener ( "interval" , ( ) => {
838850 if ( ! osparc . wrapper . WebSocket . getInstance ( ) . isConnected ( ) ) {
@@ -903,7 +915,7 @@ qx.Class.define("osparc.desktop.StudyEditor", {
903915 }
904916
905917 if ( osparc . utils . Utils . isDevelopmentPlatform ( ) ) {
906- console . log ( "updateStudyDocument" , data ) ; // For debugging purposes
918+ console . log ( "updateStudyDocument" , data || "forced" ) ; // For debugging purposes
907919 }
908920
909921 this . __updatingStudy ++ ;
0 commit comments