mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Update document inspecter when file moved
This commit is contained in:
parent
a5130a5a29
commit
dbc053a1b5
@ -30,6 +30,7 @@ develop
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix an issue where the full path display in the document inspector did not update after the document file moved.
|
||||
- Fix an issue where line numbers were not drawn completely on OS X 10.8 when scroll bars are set as always shown.
|
||||
- Improve general stability.
|
||||
|
||||
|
@ -604,6 +604,20 @@ NSString *const CEIncompatibleConvertedCharKey = @"convertedChar";
|
||||
// NSFilePresenter Protocol
|
||||
//=======================================================
|
||||
|
||||
// ------------------------------------------------------
|
||||
/// file location has changed
|
||||
- (void)presentedItemDidMoveToURL:(NSURL *)newURL
|
||||
// ------------------------------------------------------
|
||||
{
|
||||
[super presentedItemDidMoveToURL:newURL];
|
||||
|
||||
__weak typeof(self) weakSelf = self;
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[[weakSelf windowController] updateFileInfo];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------------------------------------
|
||||
/// file has been modified by an external process
|
||||
- (void)presentedItemDidChange
|
||||
|
Loading…
Reference in New Issue
Block a user