Skip to content

Conversation

DKastelic
Copy link

As discussed, this pull request resolves #3480.

It adds a class that sets up listeners that listen to to tab focus events, which update the window title to include the focused tab.
The format of the window title is configurable with the message resource WindowTitleFormat=CS-Studio: %s, with %s being replaced by the active tab name. In the edge case where the main window has no active tabs, it falls back to FixedTitle.

It also slightly improves the logic determining which panel is currently active when splitting and merging them, as before it could lead to situations where a tab that no longer existed would still be deemed the "active tab".

The previous method could have led to potential memory leaks,
as a panel could have kept a reference to its sibling after it had been merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Option to Set Window Title to Active Tab Name
1 participant