Skip to content

Commit

Permalink
Fix "Show Location Logic" checkbox being inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
wooferzfg committed Apr 3, 2024
1 parent 7b927f3 commit 9b5f520
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/settings-window.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SettingsWindow extends React.PureComponent {
);
}

checkboxRow(labelText, pickedValue, key) {
checkboxRow(labelText, pickedValue, key, getCheckedValue = (value) => value) {
const checkboxId = `${key}-checkbox`;

const toggleFunc = () => {
Expand All @@ -73,7 +73,7 @@ class SettingsWindow extends React.PureComponent {
<div className="settings-window-row">
<input
className="settings-window-checkbox"
checked={pickedValue}
checked={getCheckedValue(pickedValue)}
id={checkboxId}
onChange={() => toggleFunc()}
type="checkbox"
Expand Down Expand Up @@ -142,6 +142,7 @@ class SettingsWindow extends React.PureComponent {
'Show Location Logic',
disableLogic,
'disableLogic',
(value) => !value,
)}
{this.checkboxRow(
'Track Spheres',
Expand Down

0 comments on commit 9b5f520

Please sign in to comment.