feat: improve desktop path selection and USB connection recovery

This commit is contained in:
tongtong committed 2026-11-13 03:14:00 +08:00
1 parent 5aa575f182
commit 6490665af8
28 files changed
+846 -51

No files matched your search

+7 -1
View File
@@ -172,7 +172,13 @@ class ScreenPage extends StatelessWidget {
const SizedBox(height: 12),
Expanded(
child: pid == null
? const Center(child: Text('投屏已停止,请返回设备重新打开。'))
? Center(
child: Text(
s?.screenWanted == true
? '连接中断,正在恢复 USB 和投屏…'
: '投屏已停止,请返回设备重新打开。',
),
)
: s?.screenEmbedded == true
? EmbeddedScreen(key: ValueKey(pid), pid: pid)
: const Center(child: Text('投屏已在独立窗口运行,设备连接保持不变。')),