Verify seed phrase (#1700)

* add confirm passphrase field and show/hide passphrase feature

* change error message
allow force appending translation to overwrite

* minor fix for showing frozen balance correctly [skip ci]

* remove debug prints [skip ci]
This commit is contained in:
Omar Hatem
2024-09-26 04:51:38 +03:00
committed by GitHub
parent e9b5b18428
commit 11584844d5
36 changed files with 155 additions and 55 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import 'dart:convert';
import 'dart:io';
void appendStringToArbFile(String fileName, String name, String text) {
void appendStringToArbFile(String fileName, String name, String text, {bool force = false}) {
final file = File(fileName);
final arbObj = readArbFile(file);
if (arbObj.containsKey(name)) {
if (arbObj.containsKey(name) && !force) {
print("String $name already exists in $fileName!");
return;
}