File tree 1 file changed +2
-1
lines changed
src/main/java/org/jabref/gui/ai/components/aichat
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 21
21
import org .jabref .gui .ai .components .util .notifications .Notification ;
22
22
import org .jabref .gui .ai .components .util .notifications .NotificationsComponent ;
23
23
import org .jabref .gui .icon .IconTheme ;
24
+ import org .jabref .gui .util .UiTaskExecutor ;
24
25
import org .jabref .logic .ai .AiPreferences ;
25
26
import org .jabref .logic .ai .AiService ;
26
27
import org .jabref .logic .ai .chatting .AiChatLogic ;
@@ -140,7 +141,7 @@ private void updateNotifications() {
140
141
notificationsButton .setManaged (!notifications .isEmpty ());
141
142
142
143
if (!notifications .isEmpty ()) {
143
- notificationsButton .setGraphic (IconTheme .JabRefIcons .WARNING .withColor (Color .YELLOW ).getGraphicNode ());
144
+ UiTaskExecutor . runInJavaFXThread (() -> notificationsButton .setGraphic (IconTheme .JabRefIcons .WARNING .withColor (Color .YELLOW ).getGraphicNode () ));
144
145
}
145
146
}
146
147
You can’t perform that action at this time.
0 commit comments