fix(app): load connected settings details before preferences resolve
This commit is contained in:
@@ -30,6 +30,9 @@ class SettingsController extends ChangeNotifier {
|
||||
_connection = client.state {
|
||||
_lastKind = _connection.kind;
|
||||
_subscription = client.states.listen(_onConnectionState);
|
||||
// Details belong to the current socket, not to the preferences read.
|
||||
// Mark them pending before the first frame when opening Settings live.
|
||||
if (_connection.kind == transport.ConnectionKind.connected) _requestPing();
|
||||
}
|
||||
|
||||
final transport.PipelinesClient client;
|
||||
|
||||
Reference in New Issue
Block a user