Skip to content

Commit

Permalink
- fix missing context menu for search field
Browse files Browse the repository at this point in the history
- bump kotlin version
  • Loading branch information
derreisende77 committed Jul 27, 2023
1 parent 0a1d96d commit 44eda90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# **14.0.1**
- **BUGFIX:** Inkorrekte Beschreibung des "Gespeicherten Film abspielen" Toolbar-Button im Tab Download wurde korrigiert.
- **BUGFIX:** Fehlendes Kontextmenü beim Suchfeld wurde hinzugefügt.

# **14.0.0**
- Es wird nun Java 20 verwendet.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<java.version>20</java.version>
<jdk.language.version>20</jdk.language.version>
<kotlin.language.target>19</kotlin.language.target>
<kotlin.version>1.8.21</kotlin.version>
<kotlin.version>1.9.0</kotlin.version>
<maven.compiler.source>${jdk.language.version}</maven.compiler.source>
<maven.compiler.target>${jdk.language.version}</maven.compiler.target>

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/mediathek/gui/tabs/tab_film/GuiFilme.java
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,13 @@ public SearchField() {
addActionListener(l -> performSearch());

createTrailingComponents();

setupContextMenu();
}

private void setupContextMenu() {
var handler = new TextCopyPasteHandler<>(this);
setComponentPopupMenu(handler.getPopupMenu());
}

protected abstract void createTrailingComponents();
Expand Down

0 comments on commit 44eda90

Please sign in to comment.