mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 05:00:21 +02:00
Bugfix: App add doesn't redirect if nav away during add
This commit is contained in:
@@ -156,7 +156,7 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
}()
|
}()
|
||||||
.then((app) {
|
.then((app) {
|
||||||
if (app != null) {
|
if (app != null) {
|
||||||
Navigator.push(context,
|
Navigator.push(globalNavigatorKey.currentContext ?? context,
|
||||||
MaterialPageRoute(builder: (context) => AppPage(appId: app.id)));
|
MaterialPageRoute(builder: (context) => AppPage(appId: app.id)));
|
||||||
}
|
}
|
||||||
}).catchError((e) {
|
}).catchError((e) {
|
||||||
|
Reference in New Issue
Block a user