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

fix: setRepresentedFilename with non-default titlebarStyle

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2022-07-11 17:19:39 +09:00
committed by GitHub
parent 659b2c3c52
commit efa621f76d

View File

@@ -1154,6 +1154,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() {