-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 as boolean #2814
Changes from 18 commits
993da81
84dbedb
154fb40
bad47df
829b635
d8fa7b3
78a2da1
7a58990
79dba82
4c0884e
a720756
df37891
85040d7
aac3f57
6b45626
06ffafe
536ddda
9b9c971
5badf2c
8a9a9b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -365,11 +365,24 @@ bool Terminal::EraseInDisplay(const DispatchTypes::EraseType eraseType) | |
|
||
bool Terminal::SetWindowTitle(std::wstring_view title) | ||
{ | ||
// Set the title on Terminal load | ||
if (_title.empty()) | ||
{ | ||
_title = title; | ||
_pfnTitleChanged(title); | ||
} | ||
|
||
cinnamon-msft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
_title = title; | ||
|
||
if (_pfnTitleChanged) | ||
// If this is removed, the tab object assumes the application title is the title | ||
if (_suppressApplicationTitle) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Couldn't we just not call Maybe the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we don't call There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like we could just set
and that's it. We never update |
||
{ | ||
_pfnTitleChanged(title); | ||
_title = _startingTitle; | ||
} | ||
|
||
if (_pfnTitleChanged && !_suppressApplicationTitle) | ||
{ | ||
_pfnTitleChanged(_title); | ||
} | ||
|
||
return true; | ||
|
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.
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.
Isn't this only if it's set false as default?