Skip to content
Snippets Groups Projects
Commit 87dff6eb authored by George Nachman's avatar George Nachman
Browse files

Update touch bar tab titles immediately when they change because of an escape code. Issue 6164

parent ec4d35f7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -529,6 +529,7 @@ static void SetAgainstGrainDim(BOOL isVertical, NSSize *dest, CGFloat value) {
- (void)nameOfSession:(PTYSession*)session didChangeTo:(NSString*)newName {
if ([self activeSession] == session) {
[tabViewItem_ setLabel:newName];
[self.realParentWindow tabTitleDidChange:self];
}
}
 
Loading
Loading
Loading
Loading
@@ -1175,6 +1175,10 @@ ITERM_WEAKLY_REFERENCEABLE
return (PTYTab *)session.delegate;
}
 
- (void)tabTitleDidChange:(PTYTab *)tab {
[self updateTouchBarIfNeeded];
}
// Allow frame to go off-screen while hotkey window is sliding in or out.
- (BOOL)terminalWindowShouldConstrainFrameToScreen {
iTermProfileHotKey *profileHotKey = [[iTermHotKeyController sharedInstance] profileHotKeyForWindowController:self];
Loading
Loading
Loading
Loading
@@ -228,6 +228,8 @@ typedef NS_ENUM(NSInteger, BroadcastMode) {
// Returns the tab associated with a session.
- (PTYTab *)tabForSession:(PTYSession *)session;
 
- (void)tabTitleDidChange:(PTYTab *)tab;
#pragma mark - Sessions
 
// Set the session name. If theSessionName is nil then set it to the pathname
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment