Skip to content
Permalink
Browse files

add default filename for create/import

  • Loading branch information...
rixombea committed Apr 24, 2019
1 parent fbcd013 commit 844caca8a310584d26379c3af4e4c646ad13461f
Showing with 15 additions and 2 deletions.
  1. +10 −2 main.js
  2. +1 −0 src/js/ws_config.js
  3. +4 −0 src/js/wsui_main.js
12 main.js
@@ -254,9 +254,17 @@ function storeNodeList(pnodes) {

let validNodes = [];
pnodes.forEach(node => {
if (!config.remoteNodeCacheSupported && true === node.cache) {
return;
if(node.hasOwnProperty('cache')) {
if (!config.remoteNodeCacheSupported && true === node.cache) {
return;
}
}
if(node.hasOwnProperty('ssl')) {
if (!config.remoteNodeSslSupported && true === node.ssl) {
return;
}
}

let item = `${node.url}:${node.port}`;
validNodes.push(item);
});
@@ -50,6 +50,7 @@ config.remoteNodeListFallback = [
'turtle.mine.nu:11898',
];
config.remoteNodeCacheSupported = false;
config.remoteNodeSslSupported = false;

// your currency name
config.assetName = 'TurtleCoin';
@@ -2561,6 +2561,10 @@ function initHandlers() {
};

if (dialogType === 'saveFile') {
dialogOpts.defaultPath = path.join(
recentDir,
`new_wallet_${(new Date()).getTime()}.${config.walletFileDefaultExt}`
);
dialogOpts.title = `Select directory to store your ${targetName}, and give it a filename.`;
dialogOpts.buttonLabel = 'OK';

0 comments on commit 844caca

Please sign in to comment.
You can’t perform that action at this time.