TF-4082 Setup text formatting menu state from user's preferences in composer
This commit is contained in:
@@ -656,6 +656,12 @@ class ComposerController extends BaseController
|
||||
responsiveUtils.isWebDesktop(currentContext!)) {
|
||||
await setupSelectedIdentityWithoutApplySignature();
|
||||
}
|
||||
|
||||
if (PlatformInfo.isWeb) {
|
||||
richTextWebController?.updateFormattingOptions(
|
||||
mailboxDashBoardController.isTextFormattingMenuOpened.value,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void initAttachmentsAndInlineImages({
|
||||
|
||||
@@ -317,6 +317,12 @@ class RichTextWebController extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
void updateFormattingOptions(bool isDisplayed) {
|
||||
formattingOptionsState.value = isDisplayed
|
||||
? FormattingOptionsState.enabled
|
||||
: FormattingOptionsState.disabled;
|
||||
}
|
||||
|
||||
bool get isFormattingOptionsEnabled => formattingOptionsState.value == FormattingOptionsState.enabled;
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user