TF-2092 Persist selected signature while expanding and minimizing the editor

(cherry picked from commit 6c2830d99b5cb0fd87ff530b3ec57cd2cdf1ff73)
This commit is contained in:
dab246
2023-08-17 18:51:18 +07:00
committed by Dat Vu
parent ff300d3231
commit 289d5bbbe2
@@ -376,8 +376,10 @@ class ComposerController extends BaseController {
_onChangeCursorOnMobile(coordinates, context); _onChangeCursorOnMobile(coordinates, context);
}, },
); );
if (identitySelected.value == null) {
_getAllIdentities(); _getAllIdentities();
} }
}
void _initEmail() { void _initEmail() {
final arguments = PlatformInfo.isWeb final arguments = PlatformInfo.isWeb
@@ -1196,11 +1198,6 @@ class ComposerController extends BaseController {
_updateTextForEditor(); _updateTextForEditor();
screenDisplayMode.value = displayMode; screenDisplayMode.value = displayMode;
_autoFocusFieldWhenLauncher(); _autoFocusFieldWhenLauncher();
Future.delayed(
const Duration(milliseconds: 500),
() => selectIdentity(identitySelected.value)
);
} }
void _updateTextForEditor() async { void _updateTextForEditor() async {
@@ -1645,8 +1642,10 @@ class ComposerController extends BaseController {
richTextWebController.editorController.setFullScreen(); richTextWebController.editorController.setFullScreen();
onChangeTextEditorWeb(initContent); onChangeTextEditorWeb(initContent);
richTextWebController.setEnableCodeView(); richTextWebController.setEnableCodeView();
if (identitySelected.value == null) {
_getAllIdentities(); _getAllIdentities();
} }
}
void handleOnFocusHtmlEditorWeb() { void handleOnFocusHtmlEditorWeb() {
FocusManager.instance.primaryFocus?.unfocus(); FocusManager.instance.primaryFocus?.unfocus();