Set the window title and url bar string upon changing tabs

This commit is contained in:
anthony 2021-02-25 19:55:03 +00:00
parent d34296b017
commit dfbf82f0bf
1 changed files with 3 additions and 0 deletions

View File

@ -391,6 +391,9 @@ static id newTabTarget;
scrollView = [tabContents scrollView];
browser = [tabContents browser];
activeTab = tabContents;
Website *website = [self currentWebsiteForTab: activeTab];
[urlBar setStringValue: [website url]];
[[self window] setTitle: [website name]];
}
-(Website*)currentWebsiteForTab: (id)tab {