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...'
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user