-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add suppressApplicationTitle setting #2750
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be sure to update the schema PR with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's more reasonable to make suppressApplicationTitle
a boolean, and if it's true then tabTitle
becomes the "winning" title over the app title. Otherwise, you end up with four places you can set the title (in order of most-winning: name
, tabTitle
, application, suppressApplicationTitle
). The original design from @zadjii-msft suggested a boolean as well.
const auto lastFocusedProfile = tab->GetFocusedProfile().value(); | ||
const auto* const matchingProfile = _settings->FindProfile(lastFocusedProfile); | ||
|
||
const auto suppressApplicationTitle = matchingProfile->GetSuppressApplicationTitle(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need a null check here: since matchingProfile
is a pointer type, it could be nullptr
. That'd indicate that the profile was removed from settings (!) before this happened.
0b89dc0
to
5f0d0b7
Compare
Recreated PR with boolean functionality in #2814 |
But whyyyy couldn’t that be a revision to the existing PR |
Summary of the Pull Request
Added
suppressApplicationTitle
as an optional profile settingWill override
tabTitle
if setJSON schema will need to be updated once it's merged
References
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed
Set both
tabTitle
andsuppressApplicationTitle
->suppressApplicationTitle
won outSet only
suppressApplicationTitle
->suppressApplicationTitle
won out