Skip to content

Commit

Permalink
fix: Backport CL 3753528 for WCO
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Sep 9, 2022
1 parent 4fb4167 commit ecec895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/ui/views/win_caption_button_container.cc
Expand Up @@ -162,7 +162,7 @@ void WinCaptionButtonContainer::UpdateButtons() {
// The maximize button should only be enabled if the window is
// maximizable *and* touch mode is disabled.
const bool maximizable = frame_view_->window()->IsMaximizable();
maximize_button_->SetEnabled(!is_touch && maximizable);
maximize_button_->SetEnabled(!is_touch || !is_maximized);

const bool closable = frame_view_->window()->IsClosable();
close_button_->SetEnabled(closable);
Expand Down

0 comments on commit ecec895

Please sign in to comment.