Skip to content

Commit

Permalink
Chore: Disable oneShot layer when the user select layer 9 or 10
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagohernandez committed Sep 4, 2024
1 parent f9409b0 commit c0b0f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/modules/KeysTabs/LayersTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ const LayersTab = ({
/>
<CustomRadioCheckBox
label={<div className="pl-0.5">Turn into OneShot layer</div>}
disabled={false}
disabled={activeLayerNumber >= 9}
onClick={() => {
if (activeLayerNumber > 0 && activeLayerNumber <= 8) {
setActiveLayerTab(previous => (previous === "layerShot" ? "layerShift" : "layerShot"));
Expand Down

0 comments on commit c0b0f0f

Please sign in to comment.