mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
tor settings when clicking connection on menu
This commit is contained in:
parent
11b7456855
commit
236c5bf2a8
1 changed files with 6 additions and 5 deletions
|
@ -16,6 +16,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:stackwallet/pages/home_view/sub_widgets/tor_sync_status_changed_event.dart';
|
import 'package:stackwallet/pages/home_view/sub_widgets/tor_sync_status_changed_event.dart';
|
||||||
import 'package:stackwallet/pages_desktop_specific/desktop_menu_item.dart';
|
import 'package:stackwallet/pages_desktop_specific/desktop_menu_item.dart';
|
||||||
|
import 'package:stackwallet/pages_desktop_specific/settings/settings_menu.dart';
|
||||||
import 'package:stackwallet/providers/desktop/current_desktop_menu_item.dart';
|
import 'package:stackwallet/providers/desktop/current_desktop_menu_item.dart';
|
||||||
import 'package:stackwallet/themes/stack_colors.dart';
|
import 'package:stackwallet/themes/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
|
@ -211,11 +212,11 @@ class _DesktopMenuState extends ConsumerState<DesktopMenu> {
|
||||||
cursor: SystemMouseCursors.click,
|
cursor: SystemMouseCursors.click,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
// ref.watch(selectedSettingsMenuItemStateProvider.state).state =
|
ref.read(currentDesktopMenuItemProvider.state).state =
|
||||||
// 4;
|
DesktopMenuItemId.settings;
|
||||||
// ref.watch(selectedSettingsMenuItemStateProvider.state).state =
|
ref
|
||||||
// 5;
|
.watch(selectedSettingsMenuItemStateProvider.state)
|
||||||
// Navigator.of(context).pushNamed(DesktopHomeView.routeName);
|
.state = 4;
|
||||||
},
|
},
|
||||||
child: _buildTorIcon(TorSyncStatus.unableToSync)),
|
child: _buildTorIcon(TorSyncStatus.unableToSync)),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue