Improve editor performance when file browser show lots of stuff

Delays may still be experienced when a file is opened or its “modified” state is changed but general edits should no longer be affected by how much is showing in the file browser.

This addresses issue #463.
This commit is contained in:
Allan Odgaard
2012-09-26 00:26:01 +02:00
parent e958a04945
commit e1fc3993f0

View File

@@ -203,6 +203,9 @@ static bool is_binary (std::string const& path)
- (void)setOpenURLs:(NSArray*)newOpenURLs
{
if([outlineViewDelegate.openURLs isEqualToArray:newOpenURLs])
return;
outlineViewDelegate.openURLs = newOpenURLs;
[view.outlineView reloadData];
}
@@ -214,6 +217,9 @@ static bool is_binary (std::string const& path)
- (void)setModifiedURLs:(NSArray*)newModifiedURLs
{
if([outlineViewDelegate.modifiedURLs isEqualToArray:newModifiedURLs])
return;
outlineViewDelegate.modifiedURLs = newModifiedURLs;
[view.outlineView reloadData];
}