Fixes for backups for monero.com app

This commit is contained in:
M
2022-02-02 14:40:40 +02:00
parent 66d4b959af
commit 05c4d26634
8 changed files with 65 additions and 16 deletions
@@ -52,7 +52,6 @@ class WalletMenu {
image: Image.asset('assets/images/open_book_menu.png',
height: 16, width: 16),
handler: () => Navigator.of(context).pushNamed(Routes.addressBook)),
if(!isMoneroOnly)
WalletMenuItem(
title: S.current.backup,
image: Image.asset('assets/images/restore_wallet.png',
@@ -80,7 +80,7 @@ class WalletListBodyState extends State<WalletListBody> {
: Theme.of(context).backgroundColor;
final row = GestureDetector(
onTap: () async {
if (wallet.isCurrent) {
if (wallet.isCurrent || !wallet.isEnabled) {
return;
}
@@ -132,7 +132,9 @@ class WalletListBodyState extends State<WalletListBody> {
crossAxisAlignment:
CrossAxisAlignment.center,
children: <Widget>[
_imageFor(type: wallet.type),
wallet.isEnabled
? _imageFor(type: wallet.type)
: nonWalletTypeIcon,
SizedBox(width: 10),
Text(
wallet.name,
+2 -7
View File
@@ -161,13 +161,8 @@ class WelcomePage extends BasePage {
padding: EdgeInsets.only(top: 10),
child: PrimaryImageButton(
onPressed: () {
if (isMoneroOnly) {
Navigator.of(context).pushNamed(Routes.moneroRestoreWalletFromWelcome);
} else {
Navigator.pushNamed(context,
Routes.restoreOptions);
}
},
Navigator.pushNamed(context, Routes.restoreOptions);
},
image: restoreWalletImage,
text: S
.of(context)