Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
switched onboarding on
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Feb 15, 2016
1 parent 57d4744 commit afc74e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ app.on('ready', function() {
appStartWindow = null;

var onboardingWindow = popupWindow.show('onboardingScreen', {width: 576, height: 442});
onboardingWindow.openDevTools();
// onboardingWindow.openDevTools();
onboardingWindow.on('close', function(){
app.quit();
});
Expand All @@ -380,6 +380,7 @@ app.on('ready', function() {
ipc.on('onBoarding_launchApp', function(e) {
clearSocket(socket);

// prevent that it closes the app
onboardingWindow.removeAllListeners('close');
onboardingWindow.close();
onboardingWindow = null;
Expand Down
2 changes: 1 addition & 1 deletion modules/checkNodeSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(appStartWindow, callbackSplash, callbackOnBoarding){
global.nodeConnector.send('eth_accounts', [], function(e, result){

// start on boarding screen
if(!e && global.nodes.geth && result && result.length !== 0) {
if(!e && global.nodes.geth && result && result.length === 0) {

callbackOnBoarding();

Expand Down
8 changes: 0 additions & 8 deletions modules/ethereumNodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,6 @@ module.exports = {
}
});


// confirm to the disclaimer in geth
if(type === 'geth') {
setTimeout(function(){
if(!error)
global.nodes[type].stdin.write("y\r\n");
}, 10);
}

});
}
Expand Down

0 comments on commit afc74e0

Please sign in to comment.