Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into prod/festapp
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Aug 8, 2024
2 parents 0ce2d32 + 7c7aa0d commit fe5a993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/HtmlEditorPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class _HtmlEditorPageState extends State<HtmlEditorPage> {

controller = QuillEditorController();
var firstLoad = (t) async {
//if function before content loaded, then it will be set via function inside _loadHtmlContent
if(_isContentLoading) {_isTextSet = true;}
if(_isTextSet){return;}
await setHtmlText(_originalHtml ?? _html);
_isTextSet = true;
Expand All @@ -50,8 +52,6 @@ class _HtmlEditorPageState extends State<HtmlEditorPage> {
Future<void> _loadHtmlContent() async {
setState(() {
_isContentLoading = true;
//avoid double setting of text
_isTextSet = true;
});
try {
_originalHtml = await widget.content?[HtmlEditorPage.parLoad]();
Expand Down

0 comments on commit fe5a993

Please sign in to comment.