Skip to content

Commit 933befa

Browse files
committed
2 parents fd38994 + a96caa9 commit 933befa

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

static/app.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,18 @@ function init_app() {
437437
if (screenCaptureStream != null) {
438438
await startScreenSharing();
439439
}
440+
441+
// 同步更新Live2D浮动按钮状态
442+
if (window.live2dManager && window.live2dManager._floatingButtons) {
443+
// 更新麦克风按钮状态
444+
syncFloatingMicButtonState(true);
445+
446+
// 更新屏幕分享按钮状态(如果屏幕共享已开启)
447+
if (screenCaptureStream != null) {
448+
syncFloatingScreenButtonState(true);
449+
}
450+
}
451+
440452
showStatusToast(window.t ? window.t('app.restartComplete', { name: lanlan_config.lanlan_name }) : `重启完成,${lanlan_config.lanlan_name}回来了!`, 4000);
441453
} catch (error) {
442454
console.error("重启时出错:", error);

0 commit comments

Comments
 (0)