Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

cinnamon-msft
Copy link
Contributor

Summary of the Pull Request

Added suppressApplicationTitle as an optional profile setting
Will override tabTitle if set
JSON schema will need to be updated once it's merged

References

PR Checklist

  • Closes "suppressApplicationTitle" doesn't work (or exist.) #2645
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Set both tabTitle and suppressApplicationTitle -> suppressApplicationTitle won out
Set only suppressApplicationTitle -> suppressApplicationTitle won out

@cinnamon-msft cinnamon-msft requested a review from a team September 13, 2019 17:42
Copy link
Member

@carlos-zamora carlos-zamora left a 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.

Copy link
Contributor

@DHowett-MSFT DHowett-MSFT left a 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();
Copy link
Contributor

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.

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 15, 2019
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 19, 2019
@cinnamon-msft
Copy link
Contributor Author

Recreated PR with boolean functionality in #2814

@DHowett-MSFT
Copy link
Contributor

But whyyyy couldn’t that be a revision to the existing PR

@zadjii-msft zadjii-msft mentioned this pull request Oct 25, 2019
@cinnamon-msft cinnamon-msft deleted the cinnamon/suppress-tab-title branch January 30, 2020 21:18
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.

"suppressApplicationTitle" doesn't work (or exist.)
3 participants