Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WalletApplication: Don't set Threading.USER_THREAD#4042

Open
msgilligan wants to merge 1 commit intobitcoinj:masterfrom
msgilligan:msgilligan/WalletTemplate-dont-set-USER_THREAD-to-Fx-thread
Open

WalletApplication: Don't set Threading.USER_THREAD#4042
msgilligan wants to merge 1 commit intobitcoinj:masterfrom
msgilligan:msgilligan/WalletTemplate-dont-set-USER_THREAD-to-Fx-thread

Conversation

@msgilligan
Copy link
Member

I checked all listeners in the application and they were already being set to use the JavaFX thread where necessary, except one instance in SendMoneyController.

The application should be in control of when to use the JavaFX thread and when not to use it. The JavaFX thread should only be used when we are actually updating the UI.

@msgilligan msgilligan force-pushed the msgilligan/WalletTemplate-dont-set-USER_THREAD-to-Fx-thread branch from 664870a to ea38984 Compare January 21, 2026 17:42
@msgilligan msgilligan requested a review from schildbach January 21, 2026 17:46
@msgilligan msgilligan added this to the 0.18 milestone Jan 21, 2026
I checked all listeners in the application and they were already
being set to use the JavaFX thread where necessary, except one instance
in `SendMoneyController`, which is fixed in this commit.

The application should be in control of when to use the JavaFX thread
and when not to use it. The JavaFX thread should only be used when
we are actually updating the UI.

This change also reduces our usage of mutable global state and allows
us to make USER_THREAD final if we so choose.
@schildbach schildbach force-pushed the msgilligan/WalletTemplate-dont-set-USER_THREAD-to-Fx-thread branch from ea38984 to 7c642fd Compare January 26, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments