Commit 5e731337 authored by John McCutchan's avatar John McCutchan Committed by GitHub

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...'
parent d05d3610
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment