mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
fix: Use consistent path separators for workspace folder location in settings menu (#2349)
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
This commit is contained in:
parent
fccd6135f7
commit
857cd9ff55
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ class SettingsLocation {
|
||||||
if (Platform.isMacOS) {
|
if (Platform.isMacOS) {
|
||||||
// remove the prefix `/Volumes/*`
|
// remove the prefix `/Volumes/*`
|
||||||
return _path?.replaceFirst(RegExp(r'^/Volumes/[^/]+'), '');
|
return _path?.replaceFirst(RegExp(r'^/Volumes/[^/]+'), '');
|
||||||
|
} else if (Platform.isWindows) {
|
||||||
|
return _path?.replaceAll("/", "\\");
|
||||||
}
|
}
|
||||||
return _path;
|
return _path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue