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

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: mlaurencin <mlaurencin@electronjs.org>
This commit is contained in:
trop[bot]
2023-06-22 10:30:59 +02:00
committed by GitHub
parent fc5a7dd023
commit 3505270a2a

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.