set the title for hidden and hidden-inset windows so they show up in the window menu list
fixes #6088
This commit is contained in:
parent
64ae5cf5a1
commit
2094b39460
1 changed files with 4 additions and 5 deletions
|
@ -800,11 +800,10 @@ void NativeWindowMac::Center() {
|
||||||
void NativeWindowMac::SetTitle(const std::string& title) {
|
void NativeWindowMac::SetTitle(const std::string& title) {
|
||||||
title_ = title;
|
title_ = title;
|
||||||
|
|
||||||
// We don't want the title to show in transparent or frameless window.
|
if (!transparent() && (has_frame() ||
|
||||||
if (transparent() || !has_frame())
|
// exception for hidden and hidden-inset
|
||||||
return;
|
force_show_buttons_))
|
||||||
|
[window_ setTitle:base::SysUTF8ToNSString(title)];
|
||||||
[window_ setTitle:base::SysUTF8ToNSString(title)];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string NativeWindowMac::GetTitle() {
|
std::string NativeWindowMac::GetTitle() {
|
||||||
|
|
Loading…
Reference in a new issue