mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix read only icon
This commit is contained in:
parent
7d09385f7d
commit
584ae1be62
@ -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)
|
||||
--------------------------
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user