mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-11-04 03:54:44 +00: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
					
				@ -25,6 +25,8 @@ class SettingsLocation {
 | 
			
		||||
    if (Platform.isMacOS) {
 | 
			
		||||
      // remove the prefix `/Volumes/*`
 | 
			
		||||
      return _path?.replaceFirst(RegExp(r'^/Volumes/[^/]+'), '');
 | 
			
		||||
    } else if (Platform.isWindows) {
 | 
			
		||||
      return _path?.replaceAll("/", "\\");
 | 
			
		||||
    }
 | 
			
		||||
    return _path;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user