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

This commit is contained in:
Michaela Laurencin 2023-06-21 11:58:33 -07:00 committed by GitHub
parent e73edb5481
commit ce6fe040fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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