flutter: Fix saved profile cannot load to config

This commit is contained in:
Calcitem 2021-02-14 00:00:37 +08:00
parent 71068d3ff3
commit 22c5cebf53
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import 'dart:convert';
import 'package:uuid/uuid.dart';
import '../common/config.dart';
import '../common/profile.dart';
import 'ranks.dart';
@ -42,6 +43,8 @@ class Player extends RankItem {
_load() async {
final profile = await Profile.shared();
await Config.loadProfile();
_uuid = profile['player-uuid'];
if (_uuid == null) {