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

Commit e613858

Browse files
authored
Merge pull request #133 from mtxr/fix-list-queries
Fix List and Open Saved Queries
2 parents 2e9c91b + 38760fd commit e613858

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
@@ -536,8 +536,9 @@ def cb(alias):
536536
class StListQueries(WindowCommand):
537537
@staticmethod
538538
def run(mode="run"):
539-
if not ST.conn:
540-
ST.selectConnection(functionsCallback=lambda: Window().run_command('st_list_queries'))
539+
if mode == "run" and not ST.conn:
540+
ST.selectConnection(functionsCallback=lambda: Window().run_command('st_list_queries',
541+
{'mode': mode}))
541542
return
542543

543544
queriesList = queries.all()

0 commit comments

Comments
 (0)