mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-13 22:44:11 +00:00
fix mac can't change video directory
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
1 parent
5d6ee18392
commit
fc99a288de
2 files changed
+56
-11
No files matched your search
@@ -381,8 +381,13 @@ class _GeneralState extends State<_General> {
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: () async {
|
||||
String? initialDirectory;
|
||||
if (await Directory.fromUri(Uri.directory(dir))
|
||||
.exists()) {
|
||||
initialDirectory = dir;
|
||||
}
|
||||
String? selectedDirectory = await FilePicker.platform
|
||||
.getDirectoryPath(initialDirectory: dir);
|
||||
.getDirectoryPath(initialDirectory: initialDirectory);
|
||||
if (selectedDirectory != null) {
|
||||
await bind.mainSetOption(
|
||||
key: 'video-save-directory',
|
||||
|
||||
Reference in new issue
Block a user