Make “Go to Favorites” a toggle

This commit is contained in:
Allan Odgaard
2013-02-11 14:21:24 +01:00
parent a9e59f5308
commit 7c1c253c86

View File

@@ -984,7 +984,13 @@ static NSMutableSet* SymmetricDifference (NSMutableSet* aSet, NSMutableSet* anot
- (IBAction)goToComputer:(id)sender { [self goToURL:kURLLocationComputer]; }
- (IBAction)goToHome:(id)sender { [self goToURL:kURLLocationHome]; }
- (IBAction)goToDesktop:(id)sender { [self goToURL:kURLLocationDesktop]; }
- (IBAction)goToFavorites:(id)sender { [self goToURL:kURLLocationFavorites]; }
- (IBAction)goToFavorites:(id)sender
{
if([_url isEqualTo:kURLLocationFavorites] && self.canGoBack)
[self goBack:sender];
else [self goToURL:kURLLocationFavorites];
}
- (IBAction)goToSCMDataSource:(id)sender
{