Merge remote-tracking branch 'origin/develop_liyi' into develop_liyi

This commit is contained in:
liyi 2024-12-19 14:48:47 +08:00
commit 3ac717f41a
2 changed files with 14 additions and 6 deletions

View File

@ -61,12 +61,14 @@ class StarLockLoginLogic extends BaseGetXController {
Storage.saveLoginData(entity.data);
Storage.setBool(saveIsVip, entity.data!.isVip == 1);
//
final Starchart starChart = entity.data!.starchart!;
Storage.saveStarChartRegisterNodeInfo(StarChartRegisterNodeEntity(
peer: PeerData(
id: starChart.starchartId,
publicKey: starChart.starchartPeerPublicKey,
privateKey: starChart.starchartPeerPrivateKey)));
if (entity.data!.starchart != null) {
final Starchart starChart = entity.data!.starchart!;
Storage.saveStarChartRegisterNodeInfo(StarChartRegisterNodeEntity(
peer: PeerData(
id: starChart.starchartId,
publicKey: starChart.starchartPeerPublicKey,
privateKey: starChart.starchartPeerPrivateKey)));
}
eventBus.fire(MineInfoChangeRefreshUI());
if (Get.isRegistered<LockMainLogic>()) {
Get.find<LockMainLogic>().getStarLockInfo(isUnShowLoading: true);

View File

@ -121,6 +121,12 @@ class StarChartLogic extends BaseGetXController {
}
Future<void> stopProcessing() async {
// voiceProcessor
if (state.voiceProcessor == null) {
state.errorMessage.value = 'Voice processor is not initialized.';
return;
}
state.isButtonDisabled.value = true;
try {
await state.voiceProcessor?.stop();