Merge pull request #2755 from abarth/mojo_shell_bool
Add a bool to indicate whether we're in MojoShell
This commit is contained in:
@@ -48,6 +48,9 @@ class MojoShell {
|
||||
}
|
||||
final ApplicationConnection _embedderConnection = _initEmbedderConnection();
|
||||
|
||||
/// Whether [connectToApplication] is able to connect to other applications.
|
||||
bool get canConnectToOtherApplications => _shell != null;
|
||||
|
||||
/// Attempts to connect to an application via the Mojo shell.
|
||||
ApplicationConnection connectToApplication(String url) {
|
||||
if (_shell == null)
|
||||
|
||||
Reference in New Issue
Block a user