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( return WindowBorder(
color: Theme.of(context).colorScheme.surface, color: Theme.of(context).colorScheme.surface,
child: PopScope( child: PopScope(
canPop: // disabled for now, shows buggy behavior if enabled
DateTime.now().millisecondsSinceEpoch < (backPullTimestamp + 2000), canPop: true,
// DateTime.now().millisecondsSinceEpoch < (backPullTimestamp + 2000),
onPopInvoked: (didPop) { onPopInvoked: (didPop) {
if (!didPop) { if (!didPop) {
setState(() { setState(() {