TF-1611 Fix can not display correctly menu screen when open setting view
(cherry picked from commit 2ba04f782ef17dac3b93930dccd3723f13d6836d)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user