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

fix: setRepresentedFilename with non-default titlebarStyle
This commit is contained in:
Shelley Vohr 2022-07-08 08:33:42 +02:00 committed by GitHub
parent e83c3ec744
commit 1941c88442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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