aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-02-25 19:29:48 +0000
committerJames Barnett <noreply@jamesbarnett.xyz>2018-02-25 19:29:48 +0000
commit9981ad629449ee1adfa930cd86b121963f511659 (patch)
tree2011e01b5a6fdfedf466232d3b8d98e1ca6a6519 /main.js
parentae8f6c9cafec89d984acb61365e2031b824ee899 (diff)
downloadsql-plus-plus-9981ad629449ee1adfa930cd86b121963f511659.tar.xz
sql-plus-plus-9981ad629449ee1adfa930cd86b121963f511659.zip
Show new connection dialog on start if no connections exist
Diffstat (limited to 'main.js')
-rw-r--r--main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.js b/main.js
index d304650..08b49be 100644
--- a/main.js
+++ b/main.js
@@ -145,6 +145,10 @@ function restoreSavedConnections() {
console.log(connection[1]);
createQueryExecutor(connection[1]);
}
+
+ if (connectionStore.size === 0) {
+ createNewConnectionDialog();
+ }
}
// TODO - only send messages to instance manager which will route request to correct webView, rather than