Skip to content

Commit

Permalink
- refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed May 14, 2024
1 parent 78c7fed commit 81a03f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package mediathek.gui.actions;

import javafx.application.Platform;
import mediathek.mainwindow.MediathekGui;
import mediathek.tool.SVGIconUtilities;

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

@Override
public void actionPerformed(ActionEvent e) {
Platform.runLater(() -> mediathekGui.tabFilme.showBookmarkWindow());
mediathekGui.tabFilme.showBookmarkWindow();
}
}
12 changes: 7 additions & 5 deletions src/main/java/mediathek/gui/tabs/tab_film/GuiFilme.java
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,13 @@ private void bookmarkFilm() {
* If necessary instantiate and show the bookmark window
*/
public void showBookmarkWindow() {
if (bookmarkWindowController.isEmpty()) {
bookmarkWindowController = Optional.of(new BookmarkWindowController());
bookmarkWindowController.get().setPartner(this);
}
bookmarkWindowController.get().show();
Platform.runLater(() -> {
if (bookmarkWindowController.isEmpty()) {
bookmarkWindowController = Optional.of(new BookmarkWindowController());
bookmarkWindowController.get().setPartner(this);
}
bookmarkWindowController.get().show();
});
}

public void playerStarten(DatenPset pSet) {
Expand Down

0 comments on commit 81a03f8

Please sign in to comment.