mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-18 14:55:53 -04:00
Fix problem caching of OrderBook, but not Buy/Sell views
This commit is contained in:
parent
0d05fcb1f5
commit
75a41ee7bc
@ -40,6 +40,7 @@ import viewfx.view.FxmlView;
|
||||
import viewfx.view.View;
|
||||
import viewfx.view.ViewLoader;
|
||||
import viewfx.view.support.ActivatableView;
|
||||
import viewfx.view.support.CachingViewLoader;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import javafx.geometry.Insets;
|
||||
@ -68,7 +69,8 @@ public class MainView extends ActivatableView<StackPane, MainViewModel> {
|
||||
private final String title;
|
||||
|
||||
@Inject
|
||||
public MainView(MainViewModel model, ViewLoader viewLoader, Navigation navigation, OverlayManager overlayManager,
|
||||
public MainView(MainViewModel model, CachingViewLoader viewLoader, Navigation navigation, OverlayManager
|
||||
overlayManager,
|
||||
Transitions transitions, @Named(MainView.TITLE_KEY) String title) {
|
||||
super(model);
|
||||
this.viewLoader = viewLoader;
|
||||
|
@ -22,13 +22,13 @@ import io.bitsquare.gui.Navigation;
|
||||
import javax.inject.Inject;
|
||||
|
||||
import viewfx.view.FxmlView;
|
||||
import viewfx.view.support.CachingViewLoader;
|
||||
import viewfx.view.ViewLoader;
|
||||
|
||||
@FxmlView
|
||||
public class BuyView extends TradeView {
|
||||
|
||||
@Inject
|
||||
public BuyView(CachingViewLoader viewLoader, Navigation navigation) {
|
||||
public BuyView(ViewLoader viewLoader, Navigation navigation) {
|
||||
super(viewLoader, navigation);
|
||||
}
|
||||
}
|
||||
|
@ -22,13 +22,13 @@ import io.bitsquare.gui.Navigation;
|
||||
import javax.inject.Inject;
|
||||
|
||||
import viewfx.view.FxmlView;
|
||||
import viewfx.view.support.CachingViewLoader;
|
||||
import viewfx.view.ViewLoader;
|
||||
|
||||
@FxmlView
|
||||
public class SellView extends TradeView {
|
||||
|
||||
@Inject
|
||||
public SellView(CachingViewLoader viewLoader, Navigation navigation) {
|
||||
public SellView(ViewLoader viewLoader, Navigation navigation) {
|
||||
super(viewLoader, navigation);
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,6 @@ import java.util.List;
|
||||
import viewfx.view.View;
|
||||
import viewfx.view.ViewLoader;
|
||||
import viewfx.view.support.ActivatableView;
|
||||
import viewfx.view.support.CachingViewLoader;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import javafx.collections.ListChangeListener;
|
||||
@ -58,7 +57,7 @@ public abstract class TradeView extends ActivatableView<TabPane, Void> {
|
||||
private final Navigation navigation;
|
||||
private final Direction direction;
|
||||
|
||||
protected TradeView(CachingViewLoader viewLoader, Navigation navigation) {
|
||||
protected TradeView(ViewLoader viewLoader, Navigation navigation) {
|
||||
this.viewLoader = viewLoader;
|
||||
this.navigation = navigation;
|
||||
this.direction = (this instanceof BuyView) ? Direction.BUY : Direction.SELL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user