File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -539,8 +539,6 @@ def __init__(self, parent=None):
539
539
self .findPrevButton .clicked .connect (self ._findPrev )
540
540
self .lineEditFind .textChanged .connect (self ._textFindChanged )
541
541
542
- self .tabEditorWidget .restoreTabsOrAddNew ()
543
-
544
542
def _findText (self ):
545
543
self .tabEditorWidget .currentWidget ().newEditor .findText (True )
546
544
@@ -586,7 +584,9 @@ def qtGui(self):
586
584
587
585
def toggleEditor (self , checked ):
588
586
self .splitterObj .show () if checked else self .splitterObj .hide ()
589
- self .tabEditorWidget .enableToolBarEditor (checked )
587
+ if not self .tabEditorWidget :
588
+ self .tabEditorWidget .enableToolBarEditor (checked )
589
+ self .tabEditorWidget .restoreTabsOrAddNew ()
590
590
591
591
def toggleObjectListWidget (self , checked ):
592
592
self .listClassMethod .show () if checked else self .listClassMethod .hide ()
@@ -679,8 +679,7 @@ def openHelp(self):
679
679
QgsContextHelp .run ( "PythonConsole" )
680
680
681
681
def openSettings (self ):
682
- options = optionsDialog (self )
683
- if options .exec_ ():
682
+ if optionsDialog (self ).exec_ ():
684
683
self .shell .refreshSettingsShell ()
685
684
self .shellOut .refreshSettingsOutput ()
686
685
self .tabEditorWidget .refreshSettingsEditor ()
You can’t perform that action at this time.
0 commit comments