Fix read only icon

This commit is contained in:
1024jp 2018-09-14 19:22:36 +09:00
parent 7d09385f7d
commit 584ae1be62
2 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,15 @@
Change Log
==========================
3.6.0-beta.2 (unreleased)
--------------------------
### Fixes
- [beta] Fix an issue the read-only icon in the status bar displayed opposite.
3.6.0-beta (276)
--------------------------

View File

@ -124,7 +124,7 @@ final class DocumentAnalyzer: NSObject {
let posix = attrs?[.posixPermissions] as? UInt16
else { return false }
return FilePermissions(mask: posix).user.contains(.write)
return !FilePermissions(mask: posix).user.contains(.write)
}()
NotificationCenter.default.post(name: DocumentAnalyzer.didUpdateFileInfoNotification, object: self)