minor fixes

This commit is contained in:
Omar
2026-07-05 02:34:13 +03:00
parent 787d4540f5
commit 00b7d7ce0d
3 changed files with 11 additions and 2 deletions
@@ -123,7 +123,9 @@ class LightningWallet {
Future<void> close() async {
_eventSubscription?.cancel();
await _sdk?.disconnect();
try {
await _sdk?.disconnect();
} catch (_) {}
_logSubscription?.cancel();
}
+7
View File
@@ -29,6 +29,13 @@ BigInt? tryParseFixed(String value, int decimals) {
BigInt parseFixed(String value, int decimals) {
final multiplier = getMultiplier(decimals);
/// handle weird cases where users enter spaces and currency after the amount
/// This should be handled from UI field to prevent non numerical values
/// but will be in the refactoring
if (value.contains(" ")) {
value = value.split(" ").first;
}
final negative = value.startsWith("-");
if (negative) value = value.substring(1);
+1 -1
View File
@@ -166,7 +166,7 @@
"centralized": "Centralizzato",
"chain_id": "ID catena",
"chains": "Chain",
"change": "Resto",
"change": "Cambia",
"change_backup_password_alert": "I tuoi file di backup precedenti non potranno essere importati con la nuova password di backup. La nuova password di backup verrà usata solo per i nuovi file di backup. Sei sicuro di voler cambiare la password di backup?",
"change_currency": "Cambia valuta",
"change_current_node": "Sei sicuro di voler cambiare il nodo corrente in ${node}?",