mirror of https://github.com/docker/docs.git
Fixing breaking bug if old version of virtualbox is installed.
This commit is contained in:
parent
2eab2374dc
commit
4fb57eb4c1
10
index.js
10
index.js
|
@ -112,7 +112,7 @@ app.on('activate-with-no-open-windows', function () {
|
||||||
app.on('ready', function() {
|
app.on('ready', function() {
|
||||||
start(function (url, nodeChild, mongoChild) {
|
start(function (url, nodeChild, mongoChild) {
|
||||||
var cleanUpChildren = function () {
|
var cleanUpChildren = function () {
|
||||||
console.log('Cleaning up children.')
|
console.log('Cleaning up children.');
|
||||||
mongoChild.kill();
|
mongoChild.kill();
|
||||||
nodeChild.kill();
|
nodeChild.kill();
|
||||||
app.quit();
|
app.quit();
|
||||||
|
@ -137,13 +137,7 @@ app.on('ready', function() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
mainWindow = new BrowserWindow(windowOptions);
|
mainWindow = new BrowserWindow(windowOptions);
|
||||||
|
mainWindow.focus();
|
||||||
// and load the index.html of the app.
|
|
||||||
mainWindow.loadUrl(url);
|
mainWindow.loadUrl(url);
|
||||||
|
|
||||||
mainWindow.webContents.on('did-finish-load', function () {
|
|
||||||
mainWindow.show();
|
|
||||||
mainWindow.focus();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -55,9 +55,9 @@ Installer.steps = [
|
||||||
callback(err);
|
callback(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, function (progress) {
|
|
||||||
progressCallback(progress);
|
|
||||||
});
|
});
|
||||||
|
}, function (progress) {
|
||||||
|
progressCallback(progress);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
callback();
|
callback();
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
Template.setup_finish.events({
|
Template.setup_finish.events({
|
||||||
'click .finish-button': function (e) {
|
'click .finish-button': function (e) {
|
||||||
var enableDiagnostics = $('.install-diagonistics input').attr('checked') ? true : false;
|
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});
|
Installs.insert({version: Installer.CURRENT_VERSION});
|
||||||
var settings = Settings.findOne();
|
var settings = Settings.findOne();
|
||||||
if (!settings) {
|
if (!settings) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "Kitematic",
|
"name": "Kitematic",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "^0.9.0",
|
"async": "^0.9.0",
|
||||||
"chokidar": "git+https://github.com/usekite/chokidar.git",
|
"chokidar": "git+https://github.com/usekite/chokidar.git",
|
||||||
|
|
Loading…
Reference in New Issue