Skip to content

Commit

Permalink
Merge pull request #32 from flying-dice/clearer-run-command
Browse files Browse the repository at this point in the history
Clearer enable and run for tools.
  • Loading branch information
JonathanTurnock authored Dec 13, 2024
2 parents 2663c4a + ff7560e commit a55c4aa
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions src/renderer/src/components/subscription-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,35 @@ export function SubscriptionRow(props: SubscriptionRowProps) {
return (
<Table.Tr c={props.enabled ? undefined : 'dimmed'}>
<Table.Td>
{props.onRunExe ? (
<ActionIcon
size={'md'}
disabled={!props.isReady || !props.enabled}
variant={'subtle'}
onClick={props.onRunExe}
>
<BiPlay size={'1.25em'} />
</ActionIcon>
) : (
<ActionIcon
size={'md'}
disabled={!props.isReady}
variant={'subtle'}
onClick={props.onToggleMod}
>
{props.isReady && props.enabled ? (
<BiCheckboxChecked size={'1.25em'} />
) : (
<BiCheckbox size={'1.25em'} />
)}
</ActionIcon>
)}
<ActionIcon
size={'md'}
disabled={!props.isReady}
variant={'subtle'}
onClick={props.onToggleMod}
>
{props.isReady && props.enabled ? (
<BiCheckboxChecked size={'1.25em'} />
) : (
<BiCheckbox size={'1.25em'} />
)}
</ActionIcon>
</Table.Td>
<Table.Td>
<Text>{props.modName}</Text>
<Group>
{props.onRunExe && (
<Tooltip label="Enable Mod to Run" openDelay={500}>
<ActionIcon
size={'md'}
disabled={!props.isReady || !props.enabled}
variant={'subtle'}
onClick={props.onRunExe}
>
<BiPlay size={'1.25em'} />
</ActionIcon>
</Tooltip>
)}
<Text>{props.modName}</Text>
</Group>
</Table.Td>
<Table.Td>
<Group>
Expand Down

0 comments on commit a55c4aa

Please sign in to comment.