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

Change cue in input to seconds

parent 2d0bdb3f
No related branches found
No related tags found
No related merge requests found
......@@ -83,11 +83,11 @@ public class PlayerPadTabViewController extends PadSettingsTabViewController {
cueInTextField.pseudoClassStateChanged(PseudoClasses.ERROR_CLASS, false);
} else {
try {
final Duration duration = Duration.valueOf(newValue.replace(" ", ""));
padSettings.setCueIn(duration);
final int seconds = Integer.parseInt(newValue);
padSettings.setCueIn(Duration.seconds(seconds));
cueInTextField.pseudoClassStateChanged(PseudoClasses.ERROR_CLASS, false);
} catch (IllegalArgumentException e) {
} catch (NumberFormatException e) {
cueInTextField.pseudoClassStateChanged(PseudoClasses.ERROR_CLASS, true);
}
}
......@@ -118,7 +118,7 @@ public class PlayerPadTabViewController extends PadSettingsTabViewController {
final Duration cueIn = padSettings.getCueIn();
if (cueIn != null) {
cueInTextField.setText(cueIn.toString());
cueInTextField.setText(String.valueOf((int) cueIn.toSeconds()));
}
}
......
......@@ -121,7 +121,7 @@ padSettings.gen.checkbox.customSettings=Eigene Einstellungen
padSettings.checkbox.loop=Wiederholen
padSettings.button.finish=Fertig
padSettings.player.label.warning=Warnhinweise:
padSettings.player.label.cueIn=Cue In:
padSettings.player.label.cueIn=Cue In (in s):
padSettings.player.label.fade=Ein-/Ausblenden:
padSettings.layout.label.custom=Eigenes Layout:
padSettings.layout.checkbox.custom=Aktiviert
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment