Skip to content

Commit

Permalink
Merge pull request #2109 from ripcurlx/minor-dao-fixes
Browse files Browse the repository at this point in the history
Minor DAO ui fixes
  • Loading branch information
ManfredKarrer authored Dec 11, 2018
2 parents 63b7c2c + 84c73f4 commit f0025a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void deactivate() {
}

public void setLabelText(String value) {
setText(value);
setText(value.toUpperCase());
}


Expand Down
10 changes: 10 additions & 0 deletions desktop/src/main/java/bisq/desktop/main/dao/DaoView.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

import javafx.fxml.FXML;

import javafx.scene.control.ScrollPane;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;

Expand Down Expand Up @@ -136,6 +137,15 @@ protected void deactivate() {
}

private void loadView(Class<? extends View> viewClass) {

if (selectedTab != null && selectedTab.getContent() != null) {
if (selectedTab.getContent() instanceof ScrollPane) {
((ScrollPane) selectedTab.getContent()).setContent(null);
} else {
selectedTab.setContent(null);
}
}

View view = viewLoader.load(viewClass);
if (view instanceof BsqWalletView) {
selectedTab = bsqWalletTab;
Expand Down

0 comments on commit f0025a4

Please sign in to comment.