Skip to content

Commit 17315f1

Browse files
committed
temporarily hide firo masternode gui options
1 parent 969809b commit 17315f1

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

lib/pages/wallet_view/wallet_view.dart

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ import '../settings_views/wallet_settings_view/wallet_network_settings_view/wall
108108
import '../settings_views/wallet_settings_view/wallet_settings_view.dart';
109109
import '../signing/signing_view.dart';
110110
import '../spark_names/spark_names_home_view.dart';
111-
import '../masternodes/masternodes_home_view.dart';
112111
import '../token_view/my_tokens_view.dart';
113112
import 'sub_widgets/transactions_list.dart';
114113
import 'sub_widgets/wallet_summary.dart';
@@ -1203,27 +1202,27 @@ class _WalletViewState extends ConsumerState<WalletView> {
12031202
);
12041203
},
12051204
),
1206-
if (!viewOnly && wallet is FiroWallet)
1207-
WalletNavigationBarItemData(
1208-
label: "Masternodes",
1209-
icon: SvgPicture.asset(
1210-
Assets.svg.recycle,
1211-
height: 20,
1212-
width: 20,
1213-
colorFilter: ColorFilter.mode(
1214-
Theme.of(
1215-
context,
1216-
).extension<StackColors>()!.bottomNavIconIcon,
1217-
BlendMode.srcIn,
1218-
),
1219-
),
1220-
onTap: () {
1221-
Navigator.of(context).pushNamed(
1222-
MasternodesHomeView.routeName,
1223-
arguments: widget.walletId,
1224-
);
1225-
},
1226-
),
1205+
// if (!viewOnly && wallet is FiroWallet)
1206+
// WalletNavigationBarItemData(
1207+
// label: "Masternodes",
1208+
// icon: SvgPicture.asset(
1209+
// Assets.svg.recycle,
1210+
// height: 20,
1211+
// width: 20,
1212+
// colorFilter: ColorFilter.mode(
1213+
// Theme.of(
1214+
// context,
1215+
// ).extension<StackColors>()!.bottomNavIconIcon,
1216+
// BlendMode.srcIn,
1217+
// ),
1218+
// ),
1219+
// onTap: () {
1220+
// Navigator.of(context).pushNamed(
1221+
// MasternodesHomeView.routeName,
1222+
// arguments: widget.walletId,
1223+
// );
1224+
// },
1225+
// ),
12271226
if (wallet is NamecoinWallet)
12281227
WalletNavigationBarItemData(
12291228
label: "Domains",

lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_wallet_features.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ import 'package:flutter_svg/svg.dart';
2020
import '../../../../app_config.dart';
2121
import '../../../../models/keys/view_only_wallet_data.dart';
2222
import '../../../../notifications/show_flush_bar.dart';
23+
import '../../../../pages/masternodes/masternodes_home_view.dart';
2324
import '../../../../pages/monkey/monkey_view.dart';
2425
import '../../../../pages/namecoin_names/namecoin_names_home_view.dart';
2526
import '../../../../pages/paynym/paynym_claim_view.dart';
2627
import '../../../../pages/paynym/paynym_home_view.dart';
2728
import '../../../../pages/salvium_stake/salvium_create_stake_view.dart';
2829
import '../../../../pages/signing/signing_view.dart';
2930
import '../../../../pages/spark_names/spark_names_home_view.dart';
30-
import '../../../../pages/masternodes/masternodes_home_view.dart';
3131
import '../../../../providers/desktop/current_desktop_menu_item.dart';
3232
import '../../../../providers/global/paynym_api_provider.dart';
3333
import '../../../../providers/providers.dart';
@@ -504,9 +504,8 @@ class _DesktopWalletFeaturesState extends ConsumerState<DesktopWalletFeatures> {
504504
if (wallet is SignVerifyInterface && !isViewOnly)
505505
(WalletFeature.sign, Assets.svg.pencil, _onSignPressed),
506506

507-
if (!isViewOnly && wallet is FiroWallet)
508-
(WalletFeature.masternodes, Assets.svg.recycle, _onMasternodesPressed),
509-
507+
// if ( !isViewOnly && wallet is FiroWallet)
508+
// (WalletFeature.masternodes, Assets.svg.recycle, _onMasternodesPressed),
510509
if (showCoinControl)
511510
(
512511
WalletFeature.coinControl,

0 commit comments

Comments
 (0)