mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-21 06:18:42 +02:00
Fixes for backups for monero.com app
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user