TF-4082 Setup text formatting menu state from user's preferences in composer
This commit is contained in:
@@ -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