Przeglądaj źródła

make the list synchronized

Armin Schrenk 2 miesięcy temu
rodzic
commit
5a97060fac

+ 1 - 1
src/main/java/org/cryptomator/common/CommonsModule.java

@@ -134,7 +134,7 @@ public abstract class CommonsModule {
 	@Provides
 	@Singleton
 	static ObservableList<Event> provideAppEventQueue() {
-		return FXCollections.observableArrayList();
+		return FXCollections.synchronizedObservableList(FXCollections.observableArrayList());
 	}
 
 	private static void handleUncaughtExceptionInBackgroundThread(Thread thread, Throwable throwable) {