opt: check unread

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-20 00:21:09 +08:00
parent ecb416c3d2
commit f70845c350

View File

@@ -64,7 +64,7 @@ class _MainAppState extends State<MainApp>
void didPopNext() { void didPopNext() {
_mainController.checkUnreadDynamic(); _mainController.checkUnreadDynamic();
_checkDefaultSearch(true); _checkDefaultSearch(true);
_checkUnread(true); _checkUnread(context.orientation == Orientation.portrait);
super.didPopNext(); super.didPopNext();
} }
@@ -73,7 +73,7 @@ class _MainAppState extends State<MainApp>
if (state == AppLifecycleState.resumed) { if (state == AppLifecycleState.resumed) {
_mainController.checkUnreadDynamic(); _mainController.checkUnreadDynamic();
_checkDefaultSearch(true); _checkDefaultSearch(true);
_checkUnread(true); _checkUnread(context.orientation == Orientation.portrait);
} }
} }