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();
break;
case 1:
messages = TradeEvents.getTestMsgs();
messages = TradeEvents.getTestMessages();
break;
case 2:
message = DisputeMsgEvents.getTestMsg();
@ -348,7 +348,7 @@ public class NotificationsView extends ActivatableView<GridPane, Void> {
private void createPriceAlertFields() {
FormBuilder.addTitledGroupBg(root, ++gridRow, 3, Res.get("account.notifications.priceAlert.title"),
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.setConverter(new StringConverter<TradeCurrency>() {
@Override

View File

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

View File

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