Skip to content

Commit ff71697

Browse files
rueckstiesskangas
authored andcommitted
adjust connect dialog size, better error msg
1 parent dc8806a commit ff71697

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/connect/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ var ConnectView = View.extend({
163163
// the connection uri (`host:port`) exists already, but under a different name
164164
app.statusbar.hide();
165165
this.has_error = true;
166-
this.message = format('A connection to this host and port already exists '
167-
+ 'under the name "%s". Click "Connect" again to connect to this host.',
166+
this.message = format('This connection already exists '
167+
+ 'under the name "%s". Click "Connect" again to use this connection.',
168168
existingConnection.name);
169169
this.displayedConnection.name = existingConnection.name;
170170
return;
@@ -186,6 +186,7 @@ var ConnectView = View.extend({
186186

187187
// now test if the server is reachable
188188
app.statusbar.show();
189+
this.message = '';
189190
this.displayedConnection.test(this.onConnectionTested.bind(this));
190191
},
191192
onConnectionTested: function(err, model) {

src/electron/window-manager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ var DEFAULT_HEIGHT = 700;
1515
var DEFAULT_HEIGHT_DIALOG;
1616

1717
if (process.platform === 'win32') {
18-
DEFAULT_HEIGHT_DIALOG = 460;
18+
DEFAULT_HEIGHT_DIALOG = 500;
1919
} else if (process.platform === 'linux') {
20-
DEFAULT_HEIGHT_DIALOG = 430;
20+
DEFAULT_HEIGHT_DIALOG = 470;
2121
} else {
22-
DEFAULT_HEIGHT_DIALOG = 400;
22+
DEFAULT_HEIGHT_DIALOG = 440;
2323
}
24-
var DEFAULT_WIDTH_DIALOG = 600;
24+
var DEFAULT_WIDTH_DIALOG = 640;
2525

2626
var connectWindow;
2727
var windowsOpenCount = 0;

0 commit comments

Comments
 (0)