mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-31 02:39:08 -04:00
Use UI thread for warning popup
This commit is contained in:
parent
fff42d7d74
commit
8037c33e79
1 changed files with 2 additions and 2 deletions
|
@ -478,12 +478,12 @@ public class MainViewModel implements ViewModel {
|
||||||
"please file a bug report to the Github page.\n" +
|
"please file a bug report to the Github page.\n" +
|
||||||
"Error=" + e.getMessage();
|
"Error=" + e.getMessage();
|
||||||
log.error(msg);
|
log.error(msg);
|
||||||
new Popup<>().warning(msg)
|
UserThread.execute(() -> new Popup<>().warning(msg)
|
||||||
.actionButtonText("Shut down")
|
.actionButtonText("Shut down")
|
||||||
.onAction(() -> BitsquareApp.shutDownHandler.run())
|
.onAction(() -> BitsquareApp.shutDownHandler.run())
|
||||||
.closeButtonText("Report bug at Github issues")
|
.closeButtonText("Report bug at Github issues")
|
||||||
.onClose(() -> Utilities.openWebPage("https://github.com/bitsquare/bitsquare/issues"))
|
.onClose(() -> Utilities.openWebPage("https://github.com/bitsquare/bitsquare/issues"))
|
||||||
.show();
|
.show());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue