Skip to content

Commit

Permalink
This should run in a thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
niyid committed Oct 26, 2019
1 parent 0219887 commit aae6fc7
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions desktop/src/main/java/bisq/desktop/main/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,7 @@ protected Tooltip computeValue() {

// Delay a bit to give time for rendering the splash screen
UserThread.execute(() -> onUiReadyHandler.run());

//Create modal pop-up with single button taking user to Support screen if there are active support tickets
if(model.getNumOpenSupportTickets() != null && Integer.parseInt(model.getNumOpenSupportTickets().get()) > 0) {
new Popup<>().attention(Res.get("portfolio.pending.support.popup.attention"))
.closeButtonTextWithGoTo("navigation.support")
.onClose(() -> navigation.navigateTo(MainView.class, SupportView.class, ArbitrationClientView.class))
.show();
}
UserThread.execute(() -> checkOpenSupportTickets());
}

///////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -427,6 +420,18 @@ public void onCheckpointFail() {
.useShutDownButton()
.show();
}

private void checkOpenSupportTickets() {
// Create modal pop-up with single button taking user to Support screen if there
// are active support tickets
if (model.getNumOpenSupportTickets() != null && Integer.parseInt(model.getNumOpenSupportTickets().get()) > 0) {
new Popup<>().attention(Res.get("portfolio.pending.support.popup.attention"))
.closeButtonTextWithGoTo("navigation.support")
.onClose(
() -> navigation.navigateTo(MainView.class, SupportView.class, ArbitrationClientView.class))
.show();
}
}


///////////////////////////////////////////////////////////////////////////////////////////
Expand Down

1 comment on commit aae6fc7

@niyid
Copy link
Contributor Author

@niyid niyid commented on aae6fc7 Nov 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #3401

Please sign in to comment.