Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit c61e808

Browse files
committed
🐛 Uncheck and disable "trust domain" when "never ask" is checked
1 parent 7d8b59c commit c61e808

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/pages/home/bottom_sheets/confirm_open_url.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class OBConfirmOpenUrlBottomSheetState extends State<OBConfirmOpenUrlBottomSheet
8484
height: 10,
8585
),
8686
OBCheckboxField(
87+
isDisabled: !_ask,
8788
value: !_askForHost,
8889
onTap: _toggleDontAskForHost,
8990
title: _localizationService.post__open_url_dont_ask_again_for,
@@ -142,6 +143,7 @@ class OBConfirmOpenUrlBottomSheetState extends State<OBConfirmOpenUrlBottomSheet
142143
void _toggleDontAsk() {
143144
setState(() {
144145
_ask = !_ask;
146+
_askForHost = true;
145147
});
146148
}
147149

0 commit comments

Comments
 (0)