Permalink
Browse files

Merge pull request #603 from everplays/enabling-disabling-toolbaritem…

…s-issue-602

disable auto validation on toolbar items. fix #602
  • Loading branch information...
2 parents 7a63240 + 5569f1d commit 5b1c45dbe79dcc5a8e00d4311efcdf92af13fd02 @primalmotion primalmotion committed Jan 2, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 ArchipelClient/Controllers/TNModuleController.j
@@ -487,6 +487,12 @@ TNArchipelModulesVisibilityRequestNotification = @"TNArchipelModulesVisibilityR
frame = [_mainModuleView bounds],
moduleToolbarItem = [[CPToolbarItem alloc] initWithItemIdentifier:moduleIdentifier];
+ // auto validating of toolbar item should be disabled so
+ // they won't get enabled by theirselves when user clicks
+ // somewhere. for more info take a look at:
+ // https://github.com/ArchipelProject/Archipel/issues/602
+ [moduleToolbarItem setAutovalidates:NO];
+
if ([moduleLabel isKindOfClass:CPDictionary] && bundleLocale)
moduleLabel = [moduleLabel objectForKey:[defaults objectForKey:@"CPBundleLocale"]] || [moduleLabel objectForKey:@"en"];

0 comments on commit 5b1c45d

Please sign in to comment.