Make controller’s value’s type variable.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / gui / SwitchPanel.java
index e20906d..40ba4d8 100644 (file)
@@ -56,7 +56,7 @@ public class SwitchPanel extends JPanel {
 
                        @Override
                        public void actionPerformed(ActionEvent actionEvent) {
-                               switchController.value(((JCheckBox) actionEvent.getSource()).isSelected() ? 1 : 0);
+                               switchController.value(((JCheckBox) actionEvent.getSource()).isSelected());
                        }
                });
                add(checkBox, new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));