mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
clear border wallets selected cells on grid initialization
This commit is contained in:
parent
d9d316a627
commit
d0958b7936
1 changed files with 3 additions and 0 deletions
|
@ -235,6 +235,7 @@ public class MnemonicGridDialog extends Dialog<List<String>> {
|
||||||
try(BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(file))) {
|
try(BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(file))) {
|
||||||
String[][] wordGrid = PdfUtils.getWordGrid(inputStream);
|
String[][] wordGrid = PdfUtils.getWordGrid(inputStream);
|
||||||
spreadsheetView.setGrid(getGrid(wordGrid));
|
spreadsheetView.setGrid(getGrid(wordGrid));
|
||||||
|
selectedCells.clear();
|
||||||
initializedProperty.set(true);
|
initializedProperty.set(true);
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
AppServices.showErrorDialog("Cannot load PDF", e.getMessage());
|
AppServices.showErrorDialog("Cannot load PDF", e.getMessage());
|
||||||
|
@ -255,6 +256,7 @@ public class MnemonicGridDialog extends Dialog<List<String>> {
|
||||||
List<String> shuffledWordList = shuffle(mnemonicWords);
|
List<String> shuffledWordList = shuffle(mnemonicWords);
|
||||||
String[][] wordGrid = toGrid(shuffledWordList);
|
String[][] wordGrid = toGrid(shuffledWordList);
|
||||||
spreadsheetView.setGrid(getGrid(wordGrid));
|
spreadsheetView.setGrid(getGrid(wordGrid));
|
||||||
|
selectedCells.clear();
|
||||||
initializedProperty.set(true);
|
initializedProperty.set(true);
|
||||||
|
|
||||||
if(seedEntryDialog.isGenerated()) {
|
if(seedEntryDialog.isGenerated()) {
|
||||||
|
@ -269,6 +271,7 @@ public class MnemonicGridDialog extends Dialog<List<String>> {
|
||||||
final ButtonBar.ButtonData buttonData = buttonType.getButtonData();
|
final ButtonBar.ButtonData buttonData = buttonType.getButtonData();
|
||||||
ButtonBar.setButtonData(clearButton, buttonData);
|
ButtonBar.setButtonData(clearButton, buttonData);
|
||||||
clearButton.setOnAction(event -> {
|
clearButton.setOnAction(event -> {
|
||||||
|
selectedCells.clear();
|
||||||
spreadsheetView.getSelectionModel().clearSelection();
|
spreadsheetView.getSelectionModel().clearSelection();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue