Browse Source

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

Michaela Laurencin 1 year ago
parent
commit
ce6fe040fe
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

@@ -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.