Skip to content

Commit

Permalink
fix: set minimize visibility true with enable (#38879)
Browse files Browse the repository at this point in the history
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: mlaurencin <mlaurencin@electronjs.org>
  • Loading branch information
trop[bot] and mlaurencin committed Jun 22, 2023
1 parent fc5a7dd commit 3505270
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/browser/ui/views/win_caption_button_container.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void WinCaptionButtonContainer::UpdateButtons() {

const bool minimizable = frame_view_->window()->IsMinimizable();
minimize_button_->SetEnabled(minimizable);
minimize_button_->SetVisible(minimizable);

// In touch mode, windows cannot be taken out of fullscreen or tiled mode, so
// the maximize/restore button should be disabled.
Expand Down

0 comments on commit 3505270

Please sign in to comment.