TF-3290 Only show reconnection confirm dialog when composer is opened
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user