mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix: Show correct title when reconnecting to your ledger device (#2152)
This commit is contained in:
parent
d318e9134c
commit
27eaa1b1cc
3 changed files with 33 additions and 25 deletions
|
@ -280,12 +280,15 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
|||
builder: (_) => ConnectDevicePage(
|
||||
ConnectDevicePageParams(
|
||||
walletType: availableWalletTypes.first,
|
||||
onConnectDevice: (BuildContext context, _) => Navigator.of(context).pushNamed(
|
||||
onConnectDevice: (BuildContext context, _) =>
|
||||
Navigator.of(context).pushNamed(
|
||||
Routes.chooseHardwareWalletAccount,
|
||||
arguments: [availableWalletTypes.first]),
|
||||
isReconnect: false,
|
||||
),
|
||||
getIt.get<LedgerViewModel>(),
|
||||
));
|
||||
),
|
||||
);
|
||||
}
|
||||
return CupertinoPageRoute<void>(
|
||||
builder: (_) => getIt.get<NewWalletTypePage>(
|
||||
|
@ -293,11 +296,15 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
|||
onTypeSelected: (BuildContext context, WalletType type) {
|
||||
final arguments = ConnectDevicePageParams(
|
||||
walletType: type,
|
||||
onConnectDevice: (BuildContext context, _) => Navigator.of(context)
|
||||
.pushNamed(Routes.chooseHardwareWalletAccount, arguments: [type]),
|
||||
onConnectDevice: (BuildContext context, _) =>
|
||||
Navigator.of(context).pushNamed(
|
||||
Routes.chooseHardwareWalletAccount,
|
||||
arguments: [type]),
|
||||
isReconnect: false,
|
||||
);
|
||||
|
||||
Navigator.of(context).pushNamed(Routes.connectDevices, arguments: arguments);
|
||||
Navigator.of(context)
|
||||
.pushNamed(Routes.connectDevices, arguments: arguments);
|
||||
},
|
||||
isCreate: false,
|
||||
isHardwareWallet: true,
|
||||
|
|
|
@ -28,7 +28,7 @@ class ConnectDevicePageParams {
|
|||
required this.walletType,
|
||||
required this.onConnectDevice,
|
||||
this.allowChangeWallet = false,
|
||||
this.isReconnect = false,
|
||||
this.isReconnect = true,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -525,6 +525,7 @@ class WalletListBodyState extends State<WalletListBody> {
|
|||
didConnect = true;
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
isReconnect: true,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue