disable tor-only mode

This commit is contained in:
Matthew Fosse 2024-03-04 07:52:25 -08:00
parent de4200eb29
commit 999c96d5f8
2 changed files with 2 additions and 1 deletions

View file

@ -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 {

View file

@ -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');