Fix showing error popups in GUI (#3353)

This commit is contained in:
benthecarman 2021-07-01 10:27:23 -05:00 committed by GitHub
parent 2f7e5876d3
commit 6af9e47e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ object BundleGUI extends WalletGUI with JFXApp3 {
.currentThread()
.setUncaughtExceptionHandler((_: Thread, ex: Throwable) => {
ex.printStackTrace()
lazy val _ = new Alert(AlertType.Error) {
val _ = new Alert(AlertType.Error) {
initOwner(owner)
title = "Unhandled exception"
headerText = "Exception: " + ex.getClass + ""

View File

@ -36,7 +36,7 @@ object GUI extends WalletGUI with JFXApp3 {
.currentThread()
.setUncaughtExceptionHandler((_: Thread, ex: Throwable) => {
ex.printStackTrace()
lazy val _ = new Alert(AlertType.Error) {
val _ = new Alert(AlertType.Error) {
initOwner(owner)
title = "Unhandled exception"
headerText = "Exception: " + ex.getClass + ""