[Pkg-owncloud-commits] [owncloud-client] 268/332: MacOverlays: Redraw window if registered pathes are empty.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:07:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit b92789825d175003cb4c6e97f2b73fc9f3033bd6
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Jul 18 17:13:41 2014 +0200

    MacOverlays: Redraw window if registered pathes are empty.
    
    That is the condition after a reconnect to the mirall server.
---
 .../MacOSX/LiferayNativityFinder/RequestManager.m             | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.m b/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.m
index 7bb9553..d4cef0b 100644
--- a/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.m
+++ b/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.m
@@ -135,11 +135,20 @@ static RequestManager* sharedInstance = nil;
 		if( [[chunks objectAtIndex:0] isEqualToString:@"STATUS"] ) {
 			[contentman setResultForPath:[chunks objectAtIndex:2] result:[chunks objectAtIndex:1]];
 		} else if( [[chunks objectAtIndex:0] isEqualToString:@"UPDATE_VIEW"] ) {
+			BOOL redraw = NO;
+			if( [_registeredPathes count] == 0 ) {
+				redraw = YES;
+			}
+
 			NSString *path = [chunks objectAtIndex:1];
 			NSNumber *one = [NSNumber numberWithInt:1];
 			[_registeredPathes setObject:one forKey:path];
 
-			[contentman clearFileNameCacheForPath:path]; // Fixme: index1 can be empty
+			[contentman clearFileNameCacheForPath:path];
+
+			if( redraw ) {
+				[contentman repaintAllWindows];
+			}
 		} else {
 			NSLog(@"Unknown command %@", [chunks objectAtIndex:0]);
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list