mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
Cleanups
This commit is contained in:
parent
dbad3950ae
commit
4ce22ece97
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user