Merge pull request #410 from pangeachat/remove-postframe-toolbar

move _instructionsShown up to be the first check in instructions show…
pull/1384/head
ggurdin 1 year ago committed by GitHub
commit 3d1e354445
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,6 +41,11 @@ class InstructionsController {
String transformTargetKey, [ String transformTargetKey, [
bool showToggle = true, bool showToggle = true,
]) async { ]) async {
if (_instructionsShown[key] ?? false) {
return;
}
_instructionsShown[key] = true;
if (wereInstructionsTurnedOff(key)) { if (wereInstructionsTurnedOff(key)) {
return; return;
} }
@ -51,9 +56,6 @@ class InstructionsController {
); );
return; return;
} }
if (_instructionsShown[key] ?? false) {
return;
}
final bool userLangsSet = final bool userLangsSet =
await _pangeaController.userController.areUserLanguagesSet; await _pangeaController.userController.areUserLanguagesSet;
@ -61,8 +63,6 @@ class InstructionsController {
return; return;
} }
_instructionsShown[key] = true;
final botStyle = BotStyle.text(context); final botStyle = BotStyle.text(context);
Future.delayed( Future.delayed(
const Duration(seconds: 1), const Duration(seconds: 1),

Loading…
Cancel
Save