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

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:54 +02:00
committed by GitHub
parent b390336a5c
commit b61a6f8021

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() {