mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-20 17:54:41 +00:00
disable tor-only mode
This commit is contained in:
parent
de4200eb29
commit
999c96d5f8
2 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,7 @@ class ConnectionSyncPage extends BasePage {
|
||||||
Observer(builder: (context) {
|
Observer(builder: (context) {
|
||||||
return SettingsPickerCell<TorConnectionMode>(
|
return SettingsPickerCell<TorConnectionMode>(
|
||||||
title: S.current.tor_connection,
|
title: S.current.tor_connection,
|
||||||
items: TorConnectionMode.all,
|
items: TorConnectionMode.enabledDisabled,
|
||||||
displayItem: (TorConnectionMode mode) => mode.title,
|
displayItem: (TorConnectionMode mode) => mode.title,
|
||||||
selectedItem: dashboardViewModel.torViewModel.torConnectionMode,
|
selectedItem: dashboardViewModel.torViewModel.torConnectionMode,
|
||||||
onItemSelected: (TorConnectionMode mode) async {
|
onItemSelected: (TorConnectionMode mode) async {
|
||||||
|
|
|
@ -5,6 +5,7 @@ class TorConnectionMode extends EnumerableItem<int> with Serializable<int> {
|
||||||
const TorConnectionMode({required String title, required int raw}) : super(title: title, raw: raw);
|
const TorConnectionMode({required String title, required int raw}) : super(title: title, raw: raw);
|
||||||
|
|
||||||
static const all = [TorConnectionMode.enabled, TorConnectionMode.disabled, TorConnectionMode.torOnly];
|
static const all = [TorConnectionMode.enabled, TorConnectionMode.disabled, TorConnectionMode.torOnly];
|
||||||
|
static const enabledDisabled = [TorConnectionMode.enabled, TorConnectionMode.disabled];
|
||||||
|
|
||||||
static const enabled = TorConnectionMode(raw: 0, title: 'Enabled');
|
static const enabled = TorConnectionMode(raw: 0, title: 'Enabled');
|
||||||
static const disabled = TorConnectionMode(raw: 1, title: 'Disabled');
|
static const disabled = TorConnectionMode(raw: 1, title: 'Disabled');
|
||||||
|
|
Loading…
Reference in a new issue