fix: black screen when tapping on "Back" twice in "Share via link" (#2079)

This commit is contained in:
Tien Do Nam
2024-11-23 01:14:24 +01:00
committed by GitHub
parent df672340c6
commit 743d726701
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -1,3 +1,7 @@
## 1.17.0 (unreleased)
- fix: black screen when tapping on "Back" twice in "Share via link" (@Tienisto)
## 1.16.2 (2024-11-06)
- fix(ios): share from other apps to LocalSend doesn't work in iOS 18 (@Tienisto)
+4
View File
@@ -82,6 +82,10 @@ class _WebSendPageState extends State<WebSendPage> with Refena {
Widget build(BuildContext context) {
return PopScope(
onPopInvokedWithResult: (_, __) async {
if (_stateEnum != _ServerState.running) {
return;
}
setState(() {
_stateEnum = _ServerState.stopping;
});