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

+11
View File
@@ -454,6 +454,17 @@ public partial class MainViewModel : ObservableObject, IDisposable
ToolsStatus = string.Join(" · ", results); Notice = ToolsStatus;
});
public void PersistSelectedPaths()
{
try {
var selected=DesktopPaths.LoadSettings(settingsFile);
selected.Client=ClientPath;selected.Adb=AdbPath;selected.Scrcpy=ScrcpyPath;
selected.UsbipPath=UsbipPath;selected.CredentialFile=credentialFile;
DesktopPaths.SaveSettings(settingsFile,selected);
Notice="文件位置已保存。";
}catch(Exception error){Report(error);}
}
[RelayCommand]
private void Save()
{