Skip to content

Commit

Permalink
Fix workspace screen issue where browser opens instead of workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Mushaheed Syed committed Apr 10, 2021
1 parent a718492 commit 50ff457
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion org.purplegraphite.code/lib/src/common/strings.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Strings {
/// Application's version.
/// Don't edit manually, use `<project-dir>/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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,16 @@ class _WorkspaceExplorerScreenState extends State<WorkspaceExplorerScreen> {
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),
Expand Down
2 changes: 1 addition & 1 deletion org.purplegraphite.code/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 50ff457

Please sign in to comment.