Commit 10730b4a authored by minch's avatar minch Committed by Chromium LUCI CQ

bento: Update bento desk buttons visibility correctly

Update the buttons visibility while initializing the desks bar,
regardless of the desk bar's state.

Bug: 1167362
Change-Id: I8f4578300ff4259bcba14a4f175c55ed062ccb03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2635442Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Min Chen <minch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845186}
parent d3e07006
...@@ -691,8 +691,9 @@ void DesksBarView::UpdateNewMiniViews(bool initializing_bar_view, ...@@ -691,8 +691,9 @@ void DesksBarView::UpdateNewMiniViews(bool initializing_bar_view,
const bool is_bento_enabled = features::IsBentoEnabled(); const bool is_bento_enabled = features::IsBentoEnabled();
const auto& desks = DesksController::Get()->desks(); const auto& desks = DesksController::Get()->desks();
if (is_bento_enabled) { if (is_bento_enabled) {
if (IsZeroState() && !expanding_bar_view) { if (initializing_bar_view)
UpdateBentoDeskButtonsVisibility(); UpdateBentoDeskButtonsVisibility();
if (IsZeroState() && !expanding_bar_view) {
gfx::Transform transform; gfx::Transform transform;
transform.Translate(0, -(height() - kZeroStateBarHeight)); transform.Translate(0, -(height() - kZeroStateBarHeight));
background_view_->layer()->SetTransform(transform); background_view_->layer()->SetTransform(transform);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment