This commit is contained in:
Manfred Karrer 2018-08-06 01:14:28 +02:00
parent dbad3950ae
commit 4ce22ece97
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46
3 changed files with 8 additions and 8 deletions

View File

@ -257,7 +257,7 @@ public class NotificationsView extends ActivatableView<GridPane, Void> {
message = MyOfferTakenEvents.getTestMsg(); message = MyOfferTakenEvents.getTestMsg();
break; break;
case 1: case 1:
messages = TradeEvents.getTestMsgs(); messages = TradeEvents.getTestMessages();
break; break;
case 2: case 2:
message = DisputeMsgEvents.getTestMsg(); message = DisputeMsgEvents.getTestMsg();
@ -348,7 +348,7 @@ public class NotificationsView extends ActivatableView<GridPane, Void> {
private void createPriceAlertFields() { private void createPriceAlertFields() {
FormBuilder.addTitledGroupBg(root, ++gridRow, 3, Res.get("account.notifications.priceAlert.title"), FormBuilder.addTitledGroupBg(root, ++gridRow, 3, Res.get("account.notifications.priceAlert.title"),
Layout.GROUP_DISTANCE); Layout.GROUP_DISTANCE);
currencyComboBox = FormBuilder.addLabelComboBox(root, gridRow, Res.get("list.currency.select"), Layout.FIRST_ROW_AND_GROUP_DISTANCE).second; currencyComboBox = FormBuilder.<TradeCurrency>addLabelComboBox(root, gridRow, Res.get("list.currency.select"), Layout.FIRST_ROW_AND_GROUP_DISTANCE).second;
currencyComboBox.setPromptText(Res.get("list.currency.select")); currencyComboBox.setPromptText(Res.get("list.currency.select"));
currencyComboBox.setConverter(new StringConverter<TradeCurrency>() { currencyComboBox.setConverter(new StringConverter<TradeCurrency>() {
@Override @Override

View File

@ -42,10 +42,10 @@ import javafx.embed.swing.SwingFXUtils;
@Slf4j @Slf4j
// Must not be UI thread // Must not be UI thread
public class QrCodeReader extends Thread { class QrCodeReader extends Thread {
private Webcam webCam; private final Webcam webCam;
private ImageView imageView; private final ImageView imageView;
private Consumer<String> resultHandler; private final Consumer<String> resultHandler;
private boolean isRunning; private boolean isRunning;
public QrCodeReader(Webcam webCam, ImageView imageView, Consumer<String> resultHandler) { public QrCodeReader(Webcam webCam, ImageView imageView, Consumer<String> resultHandler) {

View File

@ -32,8 +32,8 @@ import com.github.sarxos.webcam.Webcam;
@Slf4j @Slf4j
// Must not be UI thread // Must not be UI thread
public class WebCamLauncher extends Thread { class WebCamLauncher extends Thread {
private Consumer<Webcam> resultHandler; private final Consumer<Webcam> resultHandler;
public WebCamLauncher(Consumer<Webcam> resultHandler) { public WebCamLauncher(Consumer<Webcam> resultHandler) {
this.resultHandler = resultHandler; this.resultHandler = resultHandler;