feat: improve desktop path selection and USB connection recovery
This commit is contained in:
1 parent
5aa575f182
commit
6490665af8
28 files changed
+846
-51
No files matched your search
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user