chore: don't use after move (#29468)

This commit is contained in:
David Sanders 2021-06-02 00:31:25 -07:00 committed by GitHub
parent f9213faec5
commit cb59bab8cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1465,7 +1465,7 @@ void NativeWindowMac::SetTrafficLightPosition(
base::Optional<gfx::Point> position) {
traffic_light_position_ = std::move(position);
if (buttons_view_) {
[buttons_view_ setMargin:position];
[buttons_view_ setMargin:traffic_light_position_];
[buttons_view_ viewDidMoveToWindow];
}
}