mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
fix freeze on account settings tab loading wallet type icon
This commit is contained in:
parent
c2cbe62a5a
commit
665d70b845
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ public class WalletIcon extends StackPane {
|
|||
}
|
||||
|
||||
private void addWalletIcon(String walletId) {
|
||||
Image image = new Image(PROTOCOL + ":" + walletId + "?" + QUERY, WIDTH, HEIGHT, true, false);
|
||||
Image image = new Image(PROTOCOL + ":" + walletId.replaceAll(" ", "%20").replaceAll("#", "%23") + "?" + QUERY, WIDTH, HEIGHT, true, false);
|
||||
getChildren().clear();
|
||||
Circle circle = new Circle(getPrefWidth() / 2,getPrefHeight() / 2,getPrefWidth() / 2);
|
||||
circle.setFill(new ImagePattern(image));
|
||||
|
@ -186,7 +186,7 @@ public class WalletIcon extends StackPane {
|
|||
|
||||
@Override
|
||||
public InputStream getInputStream() throws IOException {
|
||||
String walletId = url.getPath();
|
||||
String walletId = url.getPath().replaceAll("%20", " ").replaceAll("%23", "#");
|
||||
String query = url.getQuery();
|
||||
|
||||
Wallet wallet = AppServices.get().getWallet(walletId);
|
||||
|
|
Loading…
Reference in a new issue