From c0b0f0fa69abe0921aff14493979cf9b69cd62de Mon Sep 17 00:00:00 2001 From: Thiago Hernandez Date: Wed, 4 Sep 2024 17:53:19 +0200 Subject: [PATCH] Chore: Disable oneShot layer when the user select layer 9 or 10 --- src/renderer/modules/KeysTabs/LayersTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/modules/KeysTabs/LayersTab.tsx b/src/renderer/modules/KeysTabs/LayersTab.tsx index a6564efc..1b760b51 100644 --- a/src/renderer/modules/KeysTabs/LayersTab.tsx +++ b/src/renderer/modules/KeysTabs/LayersTab.tsx @@ -408,7 +408,7 @@ const LayersTab = ({ /> Turn into OneShot layer} - disabled={false} + disabled={activeLayerNumber >= 9} onClick={() => { if (activeLayerNumber > 0 && activeLayerNumber <= 8) { setActiveLayerTab(previous => (previous === "layerShot" ? "layerShift" : "layerShot"));