mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 12:07:58 -06:00
Merge pull request #167 from astubenbord/fix/close-app-documents-page
fix: Update onWillPop return statement
This commit is contained in:
@@ -150,8 +150,9 @@ class _DocumentsPageState extends State<DocumentsPage> with SingleTickerProvider
|
|||||||
onWillPop: () async {
|
onWillPop: () async {
|
||||||
if (context.read<DocumentsCubit>().state.selection.isNotEmpty) {
|
if (context.read<DocumentsCubit>().state.selection.isNotEmpty) {
|
||||||
context.read<DocumentsCubit>().resetSelection();
|
context.read<DocumentsCubit>().resetSelection();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
},
|
},
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user