From 5e7313379765a3aaee91832075dc6fbb6f6da0ec Mon Sep 17 00:00:00 2001 From: John McCutchan Date: Mon, 17 Apr 2017 11:03:43 -0700 Subject: [PATCH] Use a different message on the first reload. (#9418) The first hot reload does a bunch of work that we used to hide behind the loader screen. This PR changes the messsage printed to the user on the first reload from: 'Performing hot reload...' to: 'Initializing hot reload...' Subsequent reloads say 'Performing hot reload...' --- packages/flutter_tools/lib/src/run_hot.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/run_hot.dart b/packages/flutter_tools/lib/src/run_hot.dart index 77b1045657..ed5eddc28f 100644 --- a/packages/flutter_tools/lib/src/run_hot.dart +++ b/packages/flutter_tools/lib/src/run_hot.dart @@ -373,7 +373,9 @@ class HotRunner extends ResidentRunner { rethrow; } } else { - final Status status = logger.startProgress('Performing hot reload...', progressId: 'hot.reload'); + final bool reloadOnTopOfSnapshot = _runningFromSnapshot; + final String progressPrefix = reloadOnTopOfSnapshot ? 'Initializing' : 'Performing'; + final Status status = logger.startProgress('$progressPrefix hot reload...', progressId: 'hot.reload'); try { final Stopwatch timer = new Stopwatch()..start(); final OperationResult result = await _reloadSources(pause: pauseAfterRestart);