Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 2e9c91b

Browse files
authored
Merge pull request #132 from mtxr/fix-status-message
Fix status bar message. Related to #130
2 parents f904705 + dde32cc commit 2e9c91b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SQLTools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,15 @@ def loadDefaultConnection():
115115

116116

117117
def createOutput(panel=None, syntax=None, prependText=None):
118-
# hide previously set command running message (if any)
119-
Window().status_message('')
120118
if not panel:
121119
panel = getOutputPlace(syntax)
122120
if prependText:
123121
panel.run_command('append', {'characters': str(prependText)})
124122

125123
def append(outputContent):
124+
# hide previously set command running message (if any)
125+
Window().status_message('')
126+
# append content
126127
panel.set_read_only(False)
127128
panel.run_command('append', {'characters': outputContent})
128129
panel.set_read_only(True)

0 commit comments

Comments
 (0)