Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
gui
fsl-gui-bet
Commits
68fc2453
Commit
68fc2453
authored
Apr 19, 2022
by
Taylor Hanayik
Browse files
do not show f or g in command unless differs from default
parent
85036f0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/App.jsx
View file @
68fc2453
...
...
@@ -289,8 +289,8 @@ export default function Bet() {
'
-m
'
:
false
,
'
-s
'
:
false
,
'
-n
'
:
false
,
'
-f
'
:
0.5
,
'
-g
'
:
0.0
,
'
-f
'
:
'
0.5
'
,
'
-g
'
:
'
0
'
,
'
-r
'
:
null
,
'
-c
'
:
null
,
'
-t
'
:
false
,
...
...
@@ -390,10 +390,10 @@ export default function Bet() {
let
command
=
'
bet
'
for
(
let
[
key
,
value
]
of
Object
.
entries
({...
betOpts
}))
{
if
(
value
!==
null
)
{
if
(
value
===
false
){
if
(
value
===
false
||
value
===
defaultBetOpts
[
key
]
){
continue
}
else
if
(
value
===
true
)
{
// if true the just pass the key to set boolean bet values
// if true the
n
just pass the key to set boolean bet values
value
=
''
}
command
+=
`
${(
key
==
'
input
'
||
key
==
'
output
'
)
?
''
:
key
}
${(
key
==
'
input
'
||
key
==
'
output
'
)
?
shortenFileName
(
value
)
:
value
}
`
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment