Skip to content

Commit 81a03f8

Browse files
committed
- refactor
1 parent 78c7fed commit 81a03f8

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/main/java/mediathek/gui/actions/ManageBookmarkAction.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package mediathek.gui.actions;
22

3-
import javafx.application.Platform;
43
import mediathek.mainwindow.MediathekGui;
54
import mediathek.tool.SVGIconUtilities;
65

@@ -19,6 +18,6 @@ public ManageBookmarkAction(MediathekGui mediathekGui) {
1918

2019
@Override
2120
public void actionPerformed(ActionEvent e) {
22-
Platform.runLater(() -> mediathekGui.tabFilme.showBookmarkWindow());
21+
mediathekGui.tabFilme.showBookmarkWindow();
2322
}
2423
}

src/main/java/mediathek/gui/tabs/tab_film/GuiFilme.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,13 @@ private void bookmarkFilm() {
549549
* If necessary instantiate and show the bookmark window
550550
*/
551551
public void showBookmarkWindow() {
552-
if (bookmarkWindowController.isEmpty()) {
553-
bookmarkWindowController = Optional.of(new BookmarkWindowController());
554-
bookmarkWindowController.get().setPartner(this);
555-
}
556-
bookmarkWindowController.get().show();
552+
Platform.runLater(() -> {
553+
if (bookmarkWindowController.isEmpty()) {
554+
bookmarkWindowController = Optional.of(new BookmarkWindowController());
555+
bookmarkWindowController.get().setPartner(this);
556+
}
557+
bookmarkWindowController.get().show();
558+
});
557559
}
558560

559561
public void playerStarten(DatenPset pSet) {

0 commit comments

Comments
 (0)