enable tear off on widebar context menu

Signed-off-by: leo78913 <leo3758@riseup.net>
This commit is contained in:
leo78913 2023-07-07 10:29:11 -03:00
parent e8dc1564b6
commit 3154c2644a
No known key found for this signature in database

View File

@ -195,8 +195,10 @@ static void copyAction(QAction* from, QAction* to)
void WideBar::showVisibilityMenu(QPoint const& position)
{
if (!m_bar_menu)
if (!m_bar_menu) {
m_bar_menu = std::make_unique<QMenu>(this);
m_bar_menu->setTearOffEnabled(true);
}
if (m_menu_state == MenuState::Dirty) {
for (auto* old_action : m_bar_menu->actions())