Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Apr 30, 2022
2 parents 2c57a60 + 00c3ada commit 3946c0a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions lib/ui/settings/device_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,16 @@ class _DeviceSettingsState extends State<DeviceSettings>
activeColor: Theme.of(context).colorScheme.secondary,
secondary: Icon(MdiIcons.filePdfBox),
),
SwitchListTile(
title: Text(localization.alternatePdfViewer),
subtitle: Text(localization.alternatePdfViewerHelp),
value: prefState.enableJSPDF,
onChanged: (value) =>
viewModel.onEnableJSPDFChanged(context, value),
activeColor: Theme.of(context).colorScheme.secondary,
secondary: Icon(MdiIcons.filePdfBox),
),
if (kIsWeb)
SwitchListTile(
title: Text(localization.alternatePdfViewer),
subtitle: Text(localization.alternatePdfViewerHelp),
value: prefState.enableJSPDF,
onChanged: (value) =>
viewModel.onEnableJSPDFChanged(context, value),
activeColor: Theme.of(context).colorScheme.secondary,
secondary: Icon(MdiIcons.filePdfBox),
),
],
SwitchListTile(
title: Text(localization.persistUi),
Expand Down

0 comments on commit 3946c0a

Please sign in to comment.