mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-04-08 03:48:23 +02:00
replace forward slash with underscore in file names when saving psbts
This commit is contained in:
parent
d731f7296b
commit
1e0c0c1c75
@ -798,6 +798,7 @@ public class AppController implements Initializable {
|
||||
|
||||
String fileName = ((Label)selectedTab.getGraphic()).getText();
|
||||
if(fileName != null && !fileName.isEmpty()) {
|
||||
fileName = fileName.replace('/', '_');
|
||||
if(!fileName.endsWith(".psbt")) {
|
||||
fileName += ".psbt";
|
||||
}
|
||||
|
@ -993,7 +993,7 @@ public class HeadersController extends TransactionFormController implements Init
|
||||
fileChooser.setTitle("Save PSBT");
|
||||
|
||||
if(headersForm.getName() != null && !headersForm.getName().isEmpty()) {
|
||||
fileChooser.setInitialFileName(headersForm.getName() + ".psbt");
|
||||
fileChooser.setInitialFileName(headersForm.getName().replace('/', '_') + ".psbt");
|
||||
}
|
||||
|
||||
AppServices.moveToActiveWindowScreen(window, 800, 450);
|
||||
|
Loading…
x
Reference in New Issue
Block a user