Fixing breaking bug if old version of virtualbox is installed.

This commit is contained in:
Jeff Morgan 2014-09-12 02:12:20 -07:00
parent 2eab2374dc
commit 4fb57eb4c1
4 changed files with 7 additions and 11 deletions

View File

@ -112,7 +112,7 @@ app.on('activate-with-no-open-windows', function () {
app.on('ready', function() {
start(function (url, nodeChild, mongoChild) {
var cleanUpChildren = function () {
console.log('Cleaning up children.')
console.log('Cleaning up children.');
mongoChild.kill();
nodeChild.kill();
app.quit();
@ -137,13 +137,7 @@ app.on('ready', function() {
}
};
mainWindow = new BrowserWindow(windowOptions);
// and load the index.html of the app.
mainWindow.loadUrl(url);
mainWindow.webContents.on('did-finish-load', function () {
mainWindow.show();
mainWindow.focus();
});
mainWindow.loadUrl(url);
});
});

View File

@ -55,10 +55,10 @@ Installer.steps = [
callback(err);
}
});
});
}, function (progress) {
progressCallback(progress);
});
});
} else {
callback();
}

View File

@ -1,6 +1,8 @@
Template.setup_finish.events({
'click .finish-button': function (e) {
var enableDiagnostics = $('.install-diagonistics input').attr('checked') ? true : false;
var status = enableDiagnostics ? 'on' : 'off';
ga('send', 'event', 'link', 'click', 'turn ' + status + ' usage analytics');
Installs.insert({version: Installer.CURRENT_VERSION});
var settings = Settings.findOne();
if (!settings) {

View File

@ -1,7 +1,7 @@
{
"name": "Kitematic",
"main": "index.js",
"version": "0.2.1",
"version": "0.2.2",
"dependencies": {
"async": "^0.9.0",
"chokidar": "git+https://github.com/usekite/chokidar.git",