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

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:31:02 +02:00
committed by GitHub
parent 5b48fa0318
commit 30e1be9150

View File

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