Skip to content

Commit 9d693bd

Browse files
committed
run on first launch, cleanup
1 parent b4bee23 commit 9d693bd

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

src/connect/behavior.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var assert = require('assert');
33
var Connection = require('../models/connection');
44
var _ = require('lodash');
55

6-
var debug = require('debug')('scout:connect:behavior');
6+
// var debug = require('debug')('scout:connect:behavior');
77

88
module.exports = State.extend({
99
props: {
@@ -81,7 +81,7 @@ module.exports = State.extend({
8181
dispatch: function(action) {
8282
var newState = this.reduce(this.state, action);
8383
// if (newState !== this.state) {
84-
debug('transition: (%s, %s) ==> %s', this.state, action, newState);
84+
// debug('transition: (%s, %s) ==> %s', this.state, action, newState);
8585
// }
8686
this.state = newState;
8787
return this.state;

src/connect/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,14 @@ var ConnectView = View.extend({
235235
});
236236

237237
this.registerSubview(this.form);
238+
238239
this.listenToAndRun(this, 'change:authMethod',
239240
this.replaceAuthMethodFields.bind(this));
241+
240242
this.listenToAndRun(this, 'change:sslMethod',
241243
this.replaceSslMethodFields.bind(this));
242244

243-
// this.listenTo(app, 'autofill-connection-from-clipboard',
244-
// this.autofillFromClipboard.bind(this));
245-
246-
this.listenTo(app, 'connect-window-focused',
245+
this.listenToAndRun(app, 'connect-window-focused',
247246
this.onConnectWindowFocused.bind(this));
248247

249248
// always start in NEW_EMPTY state

src/electron/window-manager.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -167,22 +167,6 @@ app.on('show about dialog', function() {
167167
});
168168
});
169169

170-
// app.on('show autofill connection notification', function() {
171-
// Notifier.notify({
172-
// 'icon': SCOUT_ICON_PATH,
173-
// 'message': 'Click this notification to autofill the connection fields from your clipboard.',
174-
// 'title': 'Autofill Connection',
175-
// 'wait': true
176-
// }, function(err, resp) {
177-
// if (err) {
178-
// debug(err);
179-
// }
180-
// if (resp === 'Activate\n') {
181-
// connectWindow.webContents.send('message', 'autofill-connection-from-clipboard');
182-
// }
183-
// });
184-
// });
185-
186170
app.on('hide connect submenu', function() {
187171
AppMenu.hideConnect();
188172
});

0 commit comments

Comments
 (0)