disable cookie banner settings
This commit is contained in:
@@ -225,62 +225,62 @@ class WebEngineSettingsScreen extends HookConsumerWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
// Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
// padding: const EdgeInsets.symmetric(
|
||||||
horizontal: 16.0,
|
// horizontal: 16.0,
|
||||||
vertical: 8,
|
// vertical: 8,
|
||||||
),
|
// ),
|
||||||
child: Column(
|
// child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
// mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
// children: [
|
||||||
const ListTile(
|
// const ListTile(
|
||||||
title: Text('Cookie Banner Blocker'),
|
// title: Text('Cookie Banner Blocker'),
|
||||||
leading: Icon(MdiIcons.cookieSettings),
|
// leading: Icon(MdiIcons.cookieSettings),
|
||||||
contentPadding: EdgeInsets.zero,
|
// contentPadding: EdgeInsets.zero,
|
||||||
),
|
// ),
|
||||||
CheckboxListTile.adaptive(
|
// CheckboxListTile.adaptive(
|
||||||
value:
|
// value:
|
||||||
engineSettings.cookieBannerHandlingMode ==
|
// engineSettings.cookieBannerHandlingMode ==
|
||||||
CookieBannerHandlingMode.rejectAll,
|
// CookieBannerHandlingMode.rejectAll,
|
||||||
title: const Text('In normal browsing'),
|
// title: const Text('In normal browsing'),
|
||||||
controlAffinity: ListTileControlAffinity.leading,
|
// controlAffinity: ListTileControlAffinity.leading,
|
||||||
onChanged: (value) async {
|
// onChanged: (value) async {
|
||||||
await ref
|
// await ref
|
||||||
.read(saveEngineSettingsControllerProvider.notifier)
|
// .read(saveEngineSettingsControllerProvider.notifier)
|
||||||
.save(
|
// .save(
|
||||||
(currentSettings) => currentSettings.copyWith
|
// (currentSettings) => currentSettings.copyWith
|
||||||
.cookieBannerHandlingMode(
|
// .cookieBannerHandlingMode(
|
||||||
value!
|
// value!
|
||||||
? CookieBannerHandlingMode.rejectAll
|
// ? CookieBannerHandlingMode.rejectAll
|
||||||
: CookieBannerHandlingMode.disabled,
|
// : CookieBannerHandlingMode.disabled,
|
||||||
),
|
// ),
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
),
|
// ),
|
||||||
CheckboxListTile.adaptive(
|
// CheckboxListTile.adaptive(
|
||||||
value:
|
// value:
|
||||||
engineSettings
|
// engineSettings
|
||||||
.cookieBannerHandlingModePrivateBrowsing ==
|
// .cookieBannerHandlingModePrivateBrowsing ==
|
||||||
CookieBannerHandlingMode.rejectAll,
|
// CookieBannerHandlingMode.rejectAll,
|
||||||
title: const Text('In private browsing'),
|
// title: const Text('In private browsing'),
|
||||||
controlAffinity: ListTileControlAffinity.leading,
|
// controlAffinity: ListTileControlAffinity.leading,
|
||||||
onChanged: (value) async {
|
// onChanged: (value) async {
|
||||||
await ref
|
// await ref
|
||||||
.read(saveEngineSettingsControllerProvider.notifier)
|
// .read(saveEngineSettingsControllerProvider.notifier)
|
||||||
.save(
|
// .save(
|
||||||
(currentSettings) => currentSettings.copyWith
|
// (currentSettings) => currentSettings.copyWith
|
||||||
.cookieBannerHandlingModePrivateBrowsing(
|
// .cookieBannerHandlingModePrivateBrowsing(
|
||||||
value!
|
// value!
|
||||||
? CookieBannerHandlingMode.rejectAll
|
// ? CookieBannerHandlingMode.rejectAll
|
||||||
: CookieBannerHandlingMode.disabled,
|
// : CookieBannerHandlingMode.disabled,
|
||||||
),
|
// ),
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
ListTile(
|
ListTile(
|
||||||
title: const Text('Web Engine Hardening'),
|
title: const Text('Web Engine Hardening'),
|
||||||
contentPadding: const EdgeInsets.symmetric(
|
contentPadding: const EdgeInsets.symmetric(
|
||||||
|
|||||||
Reference in New Issue
Block a user