chore: Update SDK
This commit is contained in:
parent
361b558cbe
commit
c0042c9d52
3 changed files with 27 additions and 48 deletions
|
|
@ -218,13 +218,13 @@ class _SettingsState extends State<Settings> {
|
|||
await Future.delayed(Duration(milliseconds: 100));
|
||||
var valid = false;
|
||||
try {
|
||||
handle.unlock(recoveryKey: input.single);
|
||||
await handle.unlock(recoveryKey: input.single);
|
||||
valid = true;
|
||||
} catch (e, s) {
|
||||
debugPrint('Couldn\'t use recovery key: ' + e.toString());
|
||||
debugPrint(s.toString());
|
||||
try {
|
||||
handle.unlock(passphrase: input.single);
|
||||
await handle.unlock(passphrase: input.single);
|
||||
valid = true;
|
||||
} catch (e, s) {
|
||||
debugPrint('Couldn\'t use recovery passphrase: ' + e.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue