Merge remote-tracking branch 'origin/develop_liyi' into develop_liyi
This commit is contained in:
commit
3ac717f41a
@ -61,12 +61,14 @@ class StarLockLoginLogic extends BaseGetXController {
|
|||||||
Storage.saveLoginData(entity.data);
|
Storage.saveLoginData(entity.data);
|
||||||
Storage.setBool(saveIsVip, entity.data!.isVip == 1);
|
Storage.setBool(saveIsVip, entity.data!.isVip == 1);
|
||||||
//如已有星图配置则保存 无需重复注册节点及重复绑定
|
//如已有星图配置则保存 无需重复注册节点及重复绑定
|
||||||
final Starchart starChart = entity.data!.starchart!;
|
if (entity.data!.starchart != null) {
|
||||||
Storage.saveStarChartRegisterNodeInfo(StarChartRegisterNodeEntity(
|
final Starchart starChart = entity.data!.starchart!;
|
||||||
peer: PeerData(
|
Storage.saveStarChartRegisterNodeInfo(StarChartRegisterNodeEntity(
|
||||||
id: starChart.starchartId,
|
peer: PeerData(
|
||||||
publicKey: starChart.starchartPeerPublicKey,
|
id: starChart.starchartId,
|
||||||
privateKey: starChart.starchartPeerPrivateKey)));
|
publicKey: starChart.starchartPeerPublicKey,
|
||||||
|
privateKey: starChart.starchartPeerPrivateKey)));
|
||||||
|
}
|
||||||
eventBus.fire(MineInfoChangeRefreshUI());
|
eventBus.fire(MineInfoChangeRefreshUI());
|
||||||
if (Get.isRegistered<LockMainLogic>()) {
|
if (Get.isRegistered<LockMainLogic>()) {
|
||||||
Get.find<LockMainLogic>().getStarLockInfo(isUnShowLoading: true);
|
Get.find<LockMainLogic>().getStarLockInfo(isUnShowLoading: true);
|
||||||
|
|||||||
@ -121,6 +121,12 @@ class StarChartLogic extends BaseGetXController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> stopProcessing() async {
|
Future<void> stopProcessing() async {
|
||||||
|
// 检查 voiceProcessor 是否已经初始化
|
||||||
|
if (state.voiceProcessor == null) {
|
||||||
|
state.errorMessage.value = 'Voice processor is not initialized.';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
state.isButtonDisabled.value = true;
|
state.isButtonDisabled.value = true;
|
||||||
try {
|
try {
|
||||||
await state.voiceProcessor?.stop();
|
await state.voiceProcessor?.stop();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user