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();
|
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
|
||||||
|
@ -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) {
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user