浏览代码

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

Alexander Koblov 6 年之前
父节点
当前提交
113d401b7c
共有 1 个文件被更改,包括 2 次插入1 次删除
  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