From be22f0d2b23361205ed72c954d9dca937879ceec Mon Sep 17 00:00:00 2001 From: John McCutchan Date: Tue, 11 Oct 2016 12:52:48 -0700 Subject: [PATCH] Don't show restart help text when running from a prebuilt app (#6269) --- packages/flutter_tools/lib/src/run.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/run.dart b/packages/flutter_tools/lib/src/run.dart index 60e8be05226..aff9ea43850 100644 --- a/packages/flutter_tools/lib/src/run.dart +++ b/packages/flutter_tools/lib/src/run.dart @@ -261,7 +261,8 @@ class RunAndStayResident extends ResidentRunner { @override void printHelp() { - String restartText = device.supportsRestart ? ', "r" or F5 to restart the app,' : ''; + final bool showRestartText = !prebuiltMode && device.supportsRestart; + String restartText = showRestartText ? ', "r" or F5 to restart the app,' : ''; printStatus('Type "h" or F1 for help$restartText and "q", F10, or ctrl-c to quit.'); printStatus('Type "w" to print the widget hierarchy of the app, and "t" for the render tree.'); }