Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Fixes issue #29
Browse files Browse the repository at this point in the history
"Show Hardware Info" variable was not being loaded from config.json
  • Loading branch information
gilnobrega committed Jun 17, 2021
1 parent b31a994 commit 2b067f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion environment_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ environment_config:
fields: # set of fields for command
version: # key name
const: true # optional, default to TRUE
default: 1.4.0.3 # optional, default value for key, if not provided key will be required during command run
default: 1.4.0.4 # optional, default value for key, if not provided key will be required during command run
dotenv: true # optional, default to FALSE, if this field should be added to .env file

3 changes: 3 additions & 0 deletions lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ Make sure this folder has the same structure as Chia's GitHub repo.""");
_poolPublicKey = "0x" + poolPublicKey;
}

if (contents[0]["Show Hardware Info"] != null)
_showHardwareInfo = contents[0]["Show Hardware Info"];

await saveConfig();
}

Expand Down

0 comments on commit 2b067f0

Please sign in to comment.