TF-1611 Fix can not display correctly menu screen when open setting view

(cherry picked from commit 2ba04f782ef17dac3b93930dccd3723f13d6836d)
This commit is contained in:
dab246
2023-03-24 01:13:51 +07:00
committed by Dat Vu
parent bc01ab9b0f
commit fed514e40b
20 changed files with 174 additions and 274 deletions
@@ -48,7 +48,6 @@ class ForwardController extends BaseController {
bool get currentForwardLocalCopyState => currentForward.value?.localCopy ?? false;
late ForwardRecipientController recipientController;
late Worker dashboardActionWorker;
ForwardController() {
recipientController = ForwardRecipientController(
@@ -73,7 +72,6 @@ class ForwardController extends BaseController {
@override
void onClose() {
recipientController.onClose();
unregisterListenerWorker();
super.onClose();
}
@@ -291,7 +289,7 @@ class ForwardController extends BaseController {
}
void registerListenerWorker() {
dashboardActionWorker = ever(
ever(
accountDashBoardController.dashboardSettingAction,
(action) {
if (action is ClearAllInputForwarding) {
@@ -301,8 +299,4 @@ class ForwardController extends BaseController {
}
);
}
void unregisterListenerWorker() {
dashboardActionWorker.dispose();
}
}