|
@@ -408,19 +408,27 @@ static NSString* const kBrowserThemeDidChangeNotification =
|
|
|
}
|
|
|
|
|
|
- (void)rename:(id)sender {
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerRename" object:self];
|
|
|
+ if (isActive_) {
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerRename" object:self];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- (void)showInFinder:(id)sender {
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerShowInFinder" object:self];
|
|
|
+ if (isActive_) {
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerShowInFinder" object:self];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- (void)closeAllTabs:(id)sender {
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerCloseAllTabs" object:self];
|
|
|
+ if (isActive_) {
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerCloseAllTabs" object:self];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- (void)openNewWindow:(id)sender {
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerOpenNewWindow" object:self];
|
|
|
+ if (isActive_) {
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:@"KMTabControllerOpenNewWindow" object:self];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
#pragma mark - Dark&Light
|