From 50ff45750d9d3e4d6e42bf0883bbd209cc5ac33a Mon Sep 17 00:00:00 2001 From: Mushaheed Syed Date: Sat, 10 Apr 2021 08:47:31 +0530 Subject: [PATCH] Fix workspace screen issue where browser opens instead of workspace --- org.purplegraphite.code/lib/src/common/strings.dart | 2 +- .../lib/src/ui/screens/workspace_explorer.dart | 9 ++++++--- org.purplegraphite.code/pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/org.purplegraphite.code/lib/src/common/strings.dart b/org.purplegraphite.code/lib/src/common/strings.dart index 5fd6b0e..9d2a30c 100644 --- a/org.purplegraphite.code/lib/src/common/strings.dart +++ b/org.purplegraphite.code/lib/src/common/strings.dart @@ -1,7 +1,7 @@ class Strings { /// Application's version. /// Don't edit manually, use `/tools/update_version.sh`. - static const String applicationVersion = '0.5.0-aplha+2104101'; + static const String applicationVersion = '0.5.1-alpha+210410'; static const String applicationTitle = 'Snake code'; diff --git a/org.purplegraphite.code/lib/src/ui/screens/workspace_explorer.dart b/org.purplegraphite.code/lib/src/ui/screens/workspace_explorer.dart index 9a1cb0e..f2acfdf 100644 --- a/org.purplegraphite.code/lib/src/ui/screens/workspace_explorer.dart +++ b/org.purplegraphite.code/lib/src/ui/screens/workspace_explorer.dart @@ -152,13 +152,16 @@ class _WorkspaceExplorerScreenState extends State { var x = Directory.fromUri( Uri(path: object.absolutePath), ); - Navigator.pushNamed(context, BrowserScreenRoute, - arguments: x); + await Navigator.of(context).pushNamed( + WorkspaceExplorerScreenRoute, + arguments: x, + ); + await Navigator.of(context).pop(); } else if (object.entity is File) { final page = EditorTabPage(object); await controller.addPage(page); _toggleSelection(object.id); - Navigator.pop(context); + Navigator.of(context).pop(); } }, leading: getFileTypeIcon(object, isDark), diff --git a/org.purplegraphite.code/pubspec.yaml b/org.purplegraphite.code/pubspec.yaml index 4a940f6..de028f4 100644 --- a/org.purplegraphite.code/pubspec.yaml +++ b/org.purplegraphite.code/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.5.0-aplha+2104101 +version: 0.5.1-alpha+210410 environment: sdk: ">=2.7.0 <3.0.0"