diff --git a/diylc/diylc-core/src/main/resources/update.xml b/diylc/diylc-core/src/main/resources/update.xml index 3c05d108..3b732920 100644 --- a/diylc/diylc-core/src/main/resources/update.xml +++ b/diylc/diylc-core/src/main/resources/update.xml @@ -552,5 +552,21 @@ https://github.com/bancika/diy-layout-creator/releases + + + 5 + 10 + 0 + + 2026-01-10 00:00:00.000 CET + + + + BUG_FIX + 'Tactile Micro Switch' editor doesn't show up on double click + + + https://github.com/bancika/diy-layout-creator/releases + diff --git a/diylc/diylc-library/src/main/java/org/diylc/components/electromechanical/TactileMicroSwitchPositionPropertyValueSource.java b/diylc/diylc-library/src/main/java/org/diylc/components/electromechanical/TactileMicroSwitchPositionPropertyValueSource.java index 6cdb79ac..2dd4e1c3 100644 --- a/diylc/diylc-library/src/main/java/org/diylc/components/electromechanical/TactileMicroSwitchPositionPropertyValueSource.java +++ b/diylc/diylc-library/src/main/java/org/diylc/components/electromechanical/TactileMicroSwitchPositionPropertyValueSource.java @@ -1,17 +1,31 @@ +/* + * + * DIY Layout Creator (DIYLC). Copyright (c) 2009-2025 held jointly by the individual authors. + * + * This file is part of DIYLC. + * + * DIYLC is free software: you can redistribute it and/or modify it under the terms of the GNU + * General Public License as published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * DIYLC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even + * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + * Public License for more details. + * + * You should have received a copy of the GNU General Public License along with DIYLC. If not, see + * . + * + */ package org.diylc.components.electromechanical; -import org.diylc.common.PropertyWrapper; -import org.diylc.components.guitar.LeverSwitch; import org.diylc.core.AbstractDynamicPropertyValueSource; -import java.util.ArrayList; import java.util.List; -import java.util.Optional; public class TactileMicroSwitchPositionPropertyValueSource extends AbstractDynamicPropertyValueSource { @Override public List getAvailableValues() { - return List.of("Released", "Pressed"); + return List.of(0, 1); } }