fix: setRepresentedFilename with non-default titlebarStyle (#34848)

fix: setRepresentedFilename with non-default titlebarStyle

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2022-07-08 10:50:57 +02:00
committed by GitHub
parent f56cb78c89
commit b1b44e0469

View File

@@ -1164,6 +1164,8 @@ double NativeWindowMac::GetOpacity() {
void NativeWindowMac::SetRepresentedFilename(const std::string& filename) {
[window_ setRepresentedFilename:base::SysUTF8ToNSString(filename)];
if (buttons_proxy_)
[buttons_proxy_ redraw];
}
std::string NativeWindowMac::GetRepresentedFilename() {