Fix single spectrum match visualizer on FX
@@ -69,8 +69,10 @@ class SingleSpectrumLibrarySearchTask extends RowsSpectralMatchTask {
setStatus(TaskStatus.PROCESSING);
// add result frame
+ MZmineCore.runOnFxThreadAndWait(() -> {
resultWindow = new SpectraIdentificationResultsWindowFX();
- MZmineCore.runLater(() -> resultWindow.show());
+ resultWindow.show();
+ });
// do the actual matching
super.run();
