mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
chore: apply suggestion
Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
7f45dfac9c
commit
475ef22ccc
1 changed files with 1 additions and 8 deletions
|
|
@ -102,14 +102,7 @@ class _TabShellPageState extends ConsumerState<TabShellPage> {
|
|||
final tabsRouter = AutoTabsRouter.of(context);
|
||||
return PopScope(
|
||||
canPop: tabsRouter.activeIndex == 0 && !_isMultiSelectEnabled,
|
||||
onPopInvokedWithResult: (didPop, _) {
|
||||
// When a multi-select is active, step aside and let the timeline's own PopScope
|
||||
// reset the selection instead of switching back to the photos tab.
|
||||
if (didPop || _isMultiSelectEnabled) {
|
||||
return;
|
||||
}
|
||||
tabsRouter.setActiveIndex(0);
|
||||
},
|
||||
onPopInvokedWithResult: (didPop, _) => (didPop || _isMultiSelectEnabled) ? null : tabsRouter.setActiveIndex(0),
|
||||
child: Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
body: isScreenLandscape
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue