mirror of
https://github.com/electron/electron.git
synced 2026-01-24 23:08:10 -05:00
mac: Don't show title text in transparent window
This commit is contained in:
@@ -545,6 +545,10 @@ gfx::Point NativeWindowMac::GetPosition() {
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetTitle(const std::string& title) {
|
||||
// We don't want the title to show in transparent window.
|
||||
if (transparent_)
|
||||
return;
|
||||
|
||||
[window_ setTitle:base::SysUTF8ToNSString(title)];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user