Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Fixing remaining bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca committed Sep 11, 2014
1 parent b95a2ad commit 18aefe3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ app.on('ready', function() {

// and load the index.html of the app.
mainWindow.loadUrl(url);
mainWindow.show();
mainWindow.focus();

mainWindow.webContents.on('did-finish-load', function () {
mainWindow.show();
mainWindow.focus();
});
});
});
8 changes: 4 additions & 4 deletions meteor/client/lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var app = remote.require('app');
Installer = {};

Installer.CURRENT_VERSION = app.getVersion();
Installer.baseURL = 'https://s3.amazonaws.com/kite-installer/';
Installer.BASE_URL = 'https://s3.amazonaws.com/kite-installer/';

Installer.isUpToDate = function () {
return !!Installs.findOne({version: Installer.CURRENT_VERSION});
Expand All @@ -25,7 +25,7 @@ Installer.steps = [
run: function (callback, progressCallback) {
var installed = VirtualBox.installed();
if (!installed) {
Util.downloadFile(Installer.baseURL + VirtualBox.INSTALLER_FILENAME, path.join(Util.getResourceDir(), VirtualBox.INSTALLER_FILENAME), VirtualBox.INSTALLER_CHECKSUM, function (err) {
Util.downloadFile(Installer.BASE_URL + VirtualBox.INSTALLER_FILENAME, path.join(Util.getResourceDir(), VirtualBox.INSTALLER_FILENAME), VirtualBox.INSTALLER_CHECKSUM, function (err) {
if (err) {callback(err); return;}
VirtualBox.install(function (err) {
if (!VirtualBox.installed()) {
Expand All @@ -43,7 +43,7 @@ Installer.steps = [
if (err) {callback(err); return;}
if (Util.compareVersions(installedVersion, VirtualBox.REQUIRED_VERSION) < 0) {
// Download a newer version of Virtualbox
Util.downloadFile(Installer.baseURL + VirtualBox.INSTALLER_FILENAME, path.join(Util.getResourceDir(), VirtualBox.INSTALLER_FILENAME), VirtualBox.INSTALLER_CHECKSUM, function (err) {
Util.downloadFile(Installer.BASE_URL + VirtualBox.INSTALLER_FILENAME, path.join(Util.getResourceDir(), VirtualBox.INSTALLER_FILENAME), VirtualBox.INSTALLER_CHECKSUM, function (err) {
if (err) {callback(err); return;}
VirtualBox.install(function (err) {
if (err) {callback(err); return;}
Expand Down Expand Up @@ -148,7 +148,7 @@ Installer.steps = [
// Set up the default Kitematic images
{
run: function (callback, progressCallback) {
Util.downloadFile(Installer.baseURL + Docker.DEFAULT_IMAGES_FILENAME, path.join(Util.getResourceDir(), Docker.DEFAULT_IMAGES_FILENAME), Docker.DEFAULT_IMAGES_CHECKSUM, function (err) {
Util.downloadFile(Installer.BASE_URL + Docker.DEFAULT_IMAGES_FILENAME, path.join(Util.getResourceDir(), Docker.DEFAULT_IMAGES_FILENAME), Docker.DEFAULT_IMAGES_CHECKSUM, function (err) {
Docker.reloadDefaultContainers(function (err) {
callback(err);
});
Expand Down
4 changes: 4 additions & 0 deletions meteor/client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Handlebars.registerHelper('timeSince', function (date) {
return moment(date).fromNow();
});

Handlebars.registerHelper('isUpdating', function (date) {
return Session.get('isUpdating');
});

var fixBoot2DockerVM = function (callback) {
Boot2Docker.check(function (err) {
if (err) {
Expand Down
2 changes: 1 addition & 1 deletion meteor/client/views/dashboard/setup/setup-finish.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Template.setup_finish.events({
if (!settings) {
Settings.insert({tracking: enableDiagnostics});
} else {
settings.update(settings._id, {
Settings.update(settings._id, {
$set: {
tracking: enableDiagnostics
}
Expand Down
6 changes: 0 additions & 6 deletions meteor/client/views/dashboard/setup/setup-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,3 @@ Template.setup_layout.rendered = function () {
$('.header .icons a').tooltip();
}, 1000);
};

Template.setup_layout.helpers({
isUpdating: function () {
return Session.get('isUpdating');
}
});

0 comments on commit 18aefe3

Please sign in to comment.