diff --git a/integration_test/steps/text.dart b/integration_test/steps/text.dart index 1a78f10e..d31b0f85 100644 --- a/integration_test/steps/text.dart +++ b/integration_test/steps/text.dart @@ -40,14 +40,14 @@ StepDefinitionGeneric TorVersionPresent() { context.expect(versionString, "#.#.#", reason: "error reading version string from fetch-tor.sh"); return; } - context.world.attach( versionString.substring(0,4), "text/plain", "Then I expect the Tor version to be present"); + context.world.attach(versionString.substring(0, 4), "text/plain", "Then I expect the Tor version to be present"); //context.reporter.message("test!!!", MessageLevel.info); print("looking for version string $versionString"); return await context.world.appDriver.waitUntil(() async { context.world.appDriver.waitForAppToSettle(); final finder = context.world.appDriver.findBy( - versionString.substring(0,4), + versionString.substring(0, 4), FindType.text, ); return await context.world.appDriver.isPresent(finder); diff --git a/lib/views/contactsview.dart b/lib/views/contactsview.dart index 97e9a305..d950ef69 100644 --- a/lib/views/contactsview.dart +++ b/lib/views/contactsview.dart @@ -230,7 +230,7 @@ class _ContactsViewState extends State { break; case ProfileStatusMenu.disableProfile: Provider.of(context, listen: false).enabled = false; - Provider.of(context, listen: false).cwtch.DeactivatePeerEngine(onion); + Provider.of(context, listen: false).deactivatePeerEngine(context); break; } },