Skip to content
Snippets Groups Projects
Commit b0750140 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Make cue in value input accepting double

parent 90675563
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ public class PlayerPadTabViewController extends PadSettingsTabViewController { ...@@ -83,7 +83,7 @@ public class PlayerPadTabViewController extends PadSettingsTabViewController {
cueInTextField.pseudoClassStateChanged(PseudoClasses.ERROR_CLASS, false); cueInTextField.pseudoClassStateChanged(PseudoClasses.ERROR_CLASS, false);
} else { } else {
try { try {
final int seconds = Integer.parseInt(newValue); final double seconds = Double.parseDouble(newValue);
padSettings.setCueIn(Duration.seconds(seconds)); padSettings.setCueIn(Duration.seconds(seconds));
cueInTextField.pseudoClassStateChanged(PseudoClasses.ERROR_CLASS, false); cueInTextField.pseudoClassStateChanged(PseudoClasses.ERROR_CLASS, false);
...@@ -118,7 +118,7 @@ public class PlayerPadTabViewController extends PadSettingsTabViewController { ...@@ -118,7 +118,7 @@ public class PlayerPadTabViewController extends PadSettingsTabViewController {
final Duration cueIn = padSettings.getCueIn(); final Duration cueIn = padSettings.getCueIn();
if (cueIn != null) { if (cueIn != null) {
cueInTextField.setText(String.valueOf((int) cueIn.toSeconds())); cueInTextField.setText(String.valueOf(cueIn.toSeconds()));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment