This commit is contained in:
Matthew Fosse 2024-01-03 16:02:22 -05:00
parent c4c4afb74a
commit ea7e5880f2

View file

@ -96,12 +96,12 @@ class ConnectionSyncPage extends BasePage {
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 10), padding: EdgeInsets.symmetric(horizontal: 12, vertical: 10),
child: Column(children: [ child: Column(children: [
Observer(builder: (context) { Observer(builder: (context) {
return SettingsPickerCell<TorConnection>( return SettingsPickerCell<TorConnectionMode>(
title: S.current.tor_connection, title: S.current.tor_connection,
items: TorConnection.all, items: TorConnectionMode.all,
displayItem: (TorConnection torConnection) => torConnection.name, displayItem: (TorConnectionMode mode) => mode.title,
selectedItem: dashboardViewModel.torConnection, selectedItem: dashboardViewModel.torConnectionMode,
onItemSelected: dashboardViewModel.setTorConnection, onItemSelected: dashboardViewModel.setTorConnectionMode,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(25), topRight: Radius.circular(25)), topLeft: Radius.circular(25), topRight: Radius.circular(25)),