From f48fb610e86e804c3c2d7d53728d29d87d22a1c2 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 21 Oct 2020 09:41:49 +0200 Subject: [PATCH] show no extension files in linux --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 2 +- .../java/com/sparrowwallet/sparrow/control/FileImportPane.java | 2 +- .../sparrow/preferences/ServerPreferencesController.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index ecd933e4..e65eeff5 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -445,7 +445,7 @@ public class AppController implements Initializable { FileChooser fileChooser = new FileChooser(); fileChooser.setTitle("Open Transaction"); fileChooser.getExtensionFilters().addAll( - new FileChooser.ExtensionFilter("All Files", "*.*"), + new FileChooser.ExtensionFilter("All Files", "*"), new FileChooser.ExtensionFilter("PSBT", "*.psbt"), new FileChooser.ExtensionFilter("TXN", "*.txn") ); diff --git a/src/main/java/com/sparrowwallet/sparrow/control/FileImportPane.java b/src/main/java/com/sparrowwallet/sparrow/control/FileImportPane.java index 1ac561b3..8a7ea8db 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/FileImportPane.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/FileImportPane.java @@ -84,7 +84,7 @@ public abstract class FileImportPane extends TitledDescriptionPane { FileChooser fileChooser = new FileChooser(); fileChooser.setTitle("Open " + importer.getWalletModel().toDisplayString() + " File"); fileChooser.getExtensionFilters().addAll( - new FileChooser.ExtensionFilter("All Files", "*.*"), + new FileChooser.ExtensionFilter("All Files", "*"), new FileChooser.ExtensionFilter("JSON", "*.json"), new FileChooser.ExtensionFilter("TXT", "*.txt") ); diff --git a/src/main/java/com/sparrowwallet/sparrow/preferences/ServerPreferencesController.java b/src/main/java/com/sparrowwallet/sparrow/preferences/ServerPreferencesController.java index 7429fb12..2952c256 100644 --- a/src/main/java/com/sparrowwallet/sparrow/preferences/ServerPreferencesController.java +++ b/src/main/java/com/sparrowwallet/sparrow/preferences/ServerPreferencesController.java @@ -109,7 +109,7 @@ public class ServerPreferencesController extends PreferencesDetailController { FileChooser fileChooser = new FileChooser(); fileChooser.setTitle("Select Electrum Server certificate"); fileChooser.getExtensionFilters().addAll( - new FileChooser.ExtensionFilter("All Files", "*.*"), + new FileChooser.ExtensionFilter("All Files", "*"), new FileChooser.ExtensionFilter("CRT", "*.crt") );