mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 17:40:43 +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) {
|
||||
return SettingsPickerCell<TorConnectionMode>(
|
||||
title: S.current.tor_connection,
|
||||
items: TorConnectionMode.all,
|
||||
items: TorConnectionMode.enabledDisabled,
|
||||
displayItem: (TorConnectionMode mode) => mode.title,
|
||||
selectedItem: dashboardViewModel.torViewModel.torConnectionMode,
|
||||
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);
|
||||
|
||||
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 disabled = TorConnectionMode(raw: 1, title: 'Disabled');
|
||||
|
|
Loading…
Reference in a new issue