Browse Source

fix: set minimize visibility true with enable (#38881)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: mlaurencin <[email protected]>
trop[bot] 1 year ago
parent
commit
e47bdb67f8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      shell/browser/ui/views/win_caption_button_container.cc

+ 1 - 0
shell/browser/ui/views/win_caption_button_container.cc

@@ -153,6 +153,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.