TF-3290 Only show reconnection confirm dialog when composer is opened

This commit is contained in:
dab246
2024-12-12 15:51:03 +07:00
committed by Dat H. Pham
parent 6e59633bf6
commit b83e092e47
19 changed files with 141 additions and 50 deletions
+20
View File
@@ -0,0 +1,20 @@
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/model/composer_overlay_state.dart';
class TwakeAppManager {
ComposerOverlayState? _composerOverlayState;
void openComposerOnWeb() =>
_composerOverlayState = ComposerOverlayState.active;
void closeComposerOnWeb() {
_composerOverlayState = ComposerOverlayState.inActive;
_composerOverlayState = null;
}
bool get isComposerOpened =>
_composerOverlayState == ComposerOverlayState.active;
void dispose() {
_composerOverlayState = null;
}
}