|
@@ -14,7 +14,7 @@
|
|
|
static NSString* const kBrowserThemeDidChangeNotification =
|
|
|
@"BrowserThemeDidChangeNotification";
|
|
|
|
|
|
-@implementation CTTabController {
|
|
|
+@implementation CTTabController {
|
|
|
@private
|
|
|
IBOutlet NSView* iconView_;
|
|
|
IBOutlet NSTextField* titleView_;
|
|
@@ -438,9 +438,9 @@ static NSString* const kBrowserThemeDidChangeNotification =
|
|
|
}
|
|
|
|
|
|
- (void)rename:(id)sender {
|
|
|
-// if (isActive_) {
|
|
|
+ if (isActive_) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerRename" object:self];
|
|
|
-// }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- (void)showInFinder:(id)sender {
|
|
@@ -461,6 +461,13 @@ static NSString* const kBrowserThemeDidChangeNotification =
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+- (BOOL)validateMenuItem:(NSMenuItem *)menuItem {
|
|
|
+ if (menuItem.action == @selector(rename:)) {
|
|
|
+ return isActive_;
|
|
|
+ }
|
|
|
+ return YES;
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark - Dark&Light
|
|
|
|
|
|
- (void)addObserverForAppearanceChange
|