fix: showing created entry after OCR

This commit is contained in:
Matyáš Caras 2024-02-26 22:58:01 +01:00
parent e5e803057a
commit 4a3f097b02
Signed by untrusted user who does not match committer: hernik
GPG key ID: 2A3175F98820C5C6

View file

@ -247,7 +247,9 @@ class _HomeViewState extends State<HomeView> {
.then((value) async { .then((value) async {
wallets = await WalletManager.listWallets(); wallets = await WalletManager.listWallets();
selectedWallet = await WalletManager.loadWallet( selectedWallet = await WalletManager.loadWallet(
selectedWallet!.name,); selectedWallet!.name,
);
setState(() {});
}); });
} else if (value == AppLocalizations.of(context).about) { } else if (value == AppLocalizations.of(context).about) {
showAbout(context); showAbout(context);
@ -650,7 +652,7 @@ class _HomeViewState extends State<HomeView> {
await showAdaptiveDialog<void>( await showAdaptiveDialog<void>(
context: context, context: context,
builder: (c) => StatefulBuilder( builder: (c) => StatefulBuilder(
builder: (ctx, setState) => AlertDialog.adaptive( builder: (ctx, setDialogState) => AlertDialog.adaptive(
actions: [ actions: [
TextButton( TextButton(
onPressed: () async { onPressed: () async {
@ -764,7 +766,7 @@ class _HomeViewState extends State<HomeView> {
1 && 1 &&
!value)) return; !value)) return;
selectedLanguages[index] = value; selectedLanguages[index] = value;
setState(() {}); setDialogState(() {});
}, },
), ),
const SizedBox( const SizedBox(