mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Don't cast button
This commit is contained in:
parent
106132ef88
commit
6df1f70a19
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ import javafx.animation.AnimationTimer;
|
|||
import javafx.application.Platform;
|
||||
import javafx.beans.property.SimpleObjectProperty;
|
||||
import javafx.scene.control.Alert;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.ButtonBar;
|
||||
import javafx.scene.control.ButtonType;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
|
@ -28,7 +27,7 @@ public class AskpassAlert {
|
|||
if (!SecretManager.shouldCacheForPrompt(prompt)) {
|
||||
var type = new ButtonType("Help", ButtonBar.ButtonData.HELP);
|
||||
alert.getButtonTypes().add(type);
|
||||
var button = (Button)alert.getDialogPane().lookupButton(type);
|
||||
var button = alert.getDialogPane().lookupButton(type);
|
||||
button.addEventFilter(MouseEvent.MOUSE_PRESSED, event -> {
|
||||
Hyperlinks.open(Hyperlinks.DOUBLE_PROMPT);
|
||||
event.consume();
|
||||
|
|
Loading…
Reference in a new issue