From f199215c9468348352d6e6825c138b1d7296327d Mon Sep 17 00:00:00 2001 From: ninabreznik Date: Fri, 12 Jan 2018 05:15:04 +0800 Subject: [PATCH] Make Dont show this again work --- src/app/execution/txRunner.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/execution/txRunner.js b/src/app/execution/txRunner.js index 8b1f33cd5a..a86f3df08f 100644 --- a/src/app/execution/txRunner.js +++ b/src/app/execution/txRunner.js @@ -63,7 +63,7 @@ TxRunner.prototype.execute = function (args, callback) { if (args.useCall) { tx.gas = gasLimit - if (true) { + if (!self.config.get('doNotShowAgain')) { self.detectNetwork((err,network) => { if (err) { console.log(err) @@ -111,7 +111,7 @@ TxRunner.prototype.execute = function (args, callback) { tx.gas = gasEstimation - if (true) { + if (!self.config.get('doNotShowAgain')) { self.detectNetwork((err,network) => { if (err) { @@ -245,14 +245,14 @@ function remixdDialog (tx, self) {
updateConfig(self)}>
- Never ask me to confirm again (this will be not be persisted) + Don't ask me to confirm again
` } function updateConfig (self) { - self.config.set('doNotShowAgain', !self.get('doNotShowAgain')) + self.config.set('doNotShowAgain', !self.config.get('doNotShowAgain')) } module.exports = TxRunner