-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source tab doi #3104
Source tab doi #3104
Conversation
The panel is now updated correctly, however, upon hitting "replace entry" after fetching the BibTeX data there are still some exceptions: Log File
|
Indeed, thanks for pointing out! Should be fixed now. It seems that we (I) need be more careful when updating FX components based on model events. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@@ -219,7 +219,9 @@ public void keyPressed(java.awt.event.KeyEvent e) { | |||
public synchronized void listen(FieldAddedOrRemovedEvent event) { | |||
// other field deleted -> update other fields tab | |||
if (OtherFieldsTab.isOtherField(entryType, event.getFieldName())) { | |||
rebuildOtherFieldsTab(); | |||
DefaultTaskExecutor.runInJavaFXThread(() -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can actually omit the curly braces and write it as one liner:
DefaultTaskExecutor.runInJavaFXThread(() -> rebuildOtherFieldsTab());
Fixes #3103 by making sure that updates to the source tab are always performed on the FXApplication Thread.
gradle localizationUpdate
?