From 7397cc9845d3583554eceb30d8db2de52dcff370 Mon Sep 17 00:00:00 2001 From: "Christian F." Date: Sun, 25 Aug 2024 23:27:24 +0200 Subject: [PATCH] - do not open website link from edit dialog --- .../javafx/bookmark/BookmarkNoteDialog.java | 22 +------------------ .../res/programm/fxml/bookmarkNoteDialog.fxml | 9 -------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/src/main/java/mediathek/javafx/bookmark/BookmarkNoteDialog.java b/src/main/java/mediathek/javafx/bookmark/BookmarkNoteDialog.java index 7b6d1cea19..c48eb01e44 100644 --- a/src/main/java/mediathek/javafx/bookmark/BookmarkNoteDialog.java +++ b/src/main/java/mediathek/javafx/bookmark/BookmarkNoteDialog.java @@ -7,7 +7,6 @@ import javafx.fxml.Initializable; import javafx.scene.control.*; import javafx.stage.Stage; -import mediathek.gui.actions.UrlHyperlinkAction; import mediathek.tool.http.MVHttpClient; import okhttp3.Request; import okhttp3.Response; @@ -16,7 +15,6 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; -import java.net.URISyntaxException; import java.net.URL; import java.nio.charset.StandardCharsets; import java.time.LocalDate; @@ -47,8 +45,6 @@ public class BookmarkNoteDialog implements Initializable @FXML protected Button btnWebDate; @FXML - protected Button btnWebLink; - @FXML private ProgressIndicator fxProgress; @FXML private Label fxStatus; @@ -138,21 +134,6 @@ protected String call() { new Thread(task).start(); } - /** - * Opens the linked webpage Webpage - * @param e (unused) - */ - @FXML - private void btnOpenWebLink(Event e) { - try { - if (hasWebURL) { - UrlHyperlinkAction.openURL(null,data.getWebUrl()); - } - } - catch (URISyntaxException ignored) {} - } - - public final boolean SetandShow(Stage dlgstage, BookmarkData data) { this.dlgstage = dlgstage; this.data = data; @@ -172,8 +153,7 @@ public final boolean SetandShow(Stage dlgstage, BookmarkData data) { catch (Exception ignored) {} } btnWebDate.setDisable(!hasWebURL); - btnWebLink.setDisable(!hasWebURL); - } + } handleChange(); // Display the Dialog and wait this.dlgstage.showAndWait(); diff --git a/src/main/resources/mediathek/res/programm/fxml/bookmarkNoteDialog.fxml b/src/main/resources/mediathek/res/programm/fxml/bookmarkNoteDialog.fxml index 27d903add5..e5989461bb 100644 --- a/src/main/resources/mediathek/res/programm/fxml/bookmarkNoteDialog.fxml +++ b/src/main/resources/mediathek/res/programm/fxml/bookmarkNoteDialog.fxml @@ -31,15 +31,6 @@ -