@@ -235,7 +235,6 @@ class ToM{
235235 return new URI (sch, ssp, frg)
236236 }
237237
238-
239238 def static addNextPagePane (myP , ApiNode lastNode , boolean included = false , boolean showNextButton = true ){
240239 def closeLabel = ' Stop tutorial'
241240 def closeToolTip = ' Click to stop the tutorial and close the tutorial tab'
@@ -295,7 +294,7 @@ class ToM{
295294 if (targetNode. style. name == styles. tutorial){
296295 def tutorialTabName = targetNode[attributeTabLabel] ?: defaultTabLabel
297296 def myP_thisTutorial = tomui. getContentPaneFromMyTab(tutorialTabName. toString(), true )
298- gotoAction(myP_thisTutorial, targetNode, null )
297+ gotoAction(myP_thisTutorial, targetNode, myP . equals(myP_thisTutorial) ? backNode : null )
299298 } else {
300299 gotoAction(myP, targetNode, backNode)
301300 }
@@ -306,9 +305,8 @@ class ToM{
306305 }
307306
308307 def static withGoBack ( ApiNode nodo ){
309- def iconos = nodo. icons. icons
310- return iconos. contains(' emoji-1F519' )
311- }
308+ return nodo. icons. icons. contains(' emoji-1F519' )
309+ }
312310
313311 def static gotoAction (myP , ApiNode targetNode , ApiNode backNode ){
314312 myP. removeAll()
0 commit comments