Skip to content

Commit

Permalink
Fix BraveTooltipPopup::Show
Browse files Browse the repository at this point in the history
  • Loading branch information
emerick committed Oct 15, 2024
1 parent e5a63d9 commit 103bae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions browser/ui/views/brave_tooltips/brave_tooltip_popup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ BraveTooltipPopup::~BraveTooltipPopup() {
}

void BraveTooltipPopup::Show() {
GetWidget()->ShowInactive();

BraveTooltipDelegate* delegate = tooltip_->delegate();
if (delegate) {
delegate->OnTooltipShow(tooltip_->id());
Expand Down Expand Up @@ -334,8 +336,6 @@ void BraveTooltipPopup::CreateWidgetView() {
#endif

widget->Init(std::move(params));

widget->ShowInactive();
}

void BraveTooltipPopup::CloseWidgetView() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ void BraveTooltipPopupHandler::Show(std::unique_ptr<BraveTooltip> tooltip) {

const std::string tooltip_id = tooltip->id();
if (!tooltip_popups_[tooltip_id]) {
tooltip_popups_[tooltip_id] =
new brave_tooltips::BraveTooltipPopup(std::move(tooltip));
tooltip_popups_[tooltip_id] = new BraveTooltipPopup(std::move(tooltip));
tooltip_popups_[tooltip_id]->Show();
}
}

Expand Down

0 comments on commit 103bae6

Please sign in to comment.