mirror of
https://github.com/localsend/localsend.git
synced 2026-06-23 04:10:07 +00:00
fix: correctly pop page in PopScope
This commit is contained in:
@@ -154,7 +154,7 @@ class _ProgressPageState extends State<ProgressPage> with Refena {
|
||||
canPop: false,
|
||||
onPopInvoked: (_) async {
|
||||
if (await _onWillPop() && mounted) {
|
||||
context.pop();
|
||||
context.popUntilRoot();
|
||||
}
|
||||
},
|
||||
child: Scaffold(
|
||||
|
||||
@@ -86,7 +86,7 @@ class _WebSendPageState extends State<WebSendPage> with Refena {
|
||||
await _revertServerState();
|
||||
await sleepAsync(250);
|
||||
if (mounted) {
|
||||
context.pop();
|
||||
context.popUntilRoot();
|
||||
}
|
||||
},
|
||||
child: Scaffold(
|
||||
|
||||
Reference in New Issue
Block a user