Skip to content

Commit

Permalink
Improve condition checks in componentVisibilityChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
quickiwiki committed Dec 12, 2023
1 parent 38f10fc commit bfdaa16
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ struct ModalComponentManager::ModalItem final : public ComponentMovementWatcher

void componentVisibilityChanged() override
{
if (! component->isShowing())
const auto peer = component->getPeer();
if (! component->isShowing() && !(peer && peer->isMinimised()))
cancel();
}

Expand Down

0 comments on commit bfdaa16

Please sign in to comment.