Disabled double back

This commit is contained in:
JHubi1 2024-08-20 02:20:43 +02:00
parent 354e82cacd
commit 33f656997c
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
1 changed files with 3 additions and 2 deletions

View File

@ -984,8 +984,9 @@ class _MainAppState extends State<MainApp> {
return WindowBorder(
color: Theme.of(context).colorScheme.surface,
child: PopScope(
canPop:
DateTime.now().millisecondsSinceEpoch < (backPullTimestamp + 2000),
// disabled for now, shows buggy behavior if enabled
canPop: true,
// DateTime.now().millisecondsSinceEpoch < (backPullTimestamp + 2000),
onPopInvoked: (didPop) {
if (!didPop) {
setState(() {