Browse Source

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

Alexander Koblov 6 years ago
parent
commit
113d401b7c
1 changed files with 2 additions and 1 deletions
  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, '/sys/')) 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
       if (mnt_type = 'ignore') or