flutter: Fix saved profile cannot load to config
This commit is contained in:
parent
71068d3ff3
commit
22c5cebf53
|
@ -20,6 +20,7 @@ import 'dart:convert';
|
||||||
|
|
||||||
import 'package:uuid/uuid.dart';
|
import 'package:uuid/uuid.dart';
|
||||||
|
|
||||||
|
import '../common/config.dart';
|
||||||
import '../common/profile.dart';
|
import '../common/profile.dart';
|
||||||
import 'ranks.dart';
|
import 'ranks.dart';
|
||||||
|
|
||||||
|
@ -42,6 +43,8 @@ class Player extends RankItem {
|
||||||
_load() async {
|
_load() async {
|
||||||
final profile = await Profile.shared();
|
final profile = await Profile.shared();
|
||||||
|
|
||||||
|
await Config.loadProfile();
|
||||||
|
|
||||||
_uuid = profile['player-uuid'];
|
_uuid = profile['player-uuid'];
|
||||||
|
|
||||||
if (_uuid == null) {
|
if (_uuid == null) {
|
||||||
|
|
Loading…
Reference in New Issue