Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b54651b

Browse files
committed
Minor patch (while saving configuration file)
1 parent ae8b1fe commit b54651b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,10 +1828,8 @@ def _saveCmdline():
18281828
if datatype == OPTION_TYPE.BOOLEAN:
18291829
value = "False"
18301830
elif datatype in (OPTION_TYPE.INTEGER, OPTION_TYPE.FLOAT):
1831-
if option in ("threads", "verbose"):
1832-
value = "1"
1833-
elif option == "timeout":
1834-
value = "10"
1831+
if option in defaults:
1832+
value = str(defaults[option])
18351833
else:
18361834
value = "0"
18371835
elif datatype == OPTION_TYPE.STRING:

0 commit comments

Comments
 (0)