Explorar o código

FIX: Bug [0001501] Mounts to hidden folders must not be shown in the "drive buttons" bar

Alexander Koblov %!s(int64=6) %!d(string=hai) anos
pai
achega
113d401b7c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/platform/udrivewatcher.pas

+ 2 - 1
src/platform/udrivewatcher.pas

@@ -617,7 +617,8 @@ end;
          (StrBegins(mnt_dir, '/dev/')) or
          (StrBegins(mnt_dir, '/dev/')) or
          (StrBegins(mnt_dir, '/sys/')) or
          (StrBegins(mnt_dir, '/sys/')) or
          (StrBegins(mnt_dir, '/proc/')) or
          (StrBegins(mnt_dir, '/proc/')) or
-         (StrBegins(mnt_dir, '/snap/')) then Exit;
+         (StrBegins(mnt_dir, '/snap/')) or
+         (StrBegins(ExtractFileName(mnt_dir), '.')) then Exit;
 
 
       // check file system type
       // check file system type
       if (mnt_type = 'ignore') or
       if (mnt_type = 'ignore') or