1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-23 01:33:50 +03:00

viewsdialog:remove views without user confirmation

--this is because view removals from viewsdialog have
already been confirmed from the user
This commit is contained in:
Michail Vourlakos 2021-04-27 17:49:36 +03:00
parent 2bf647db8e
commit 0aad703b45

View File

@ -1653,10 +1653,8 @@ void GenericLayout::removeView(const Latte::Data::View &viewData)
Plasma::Containment *viewcontainment = containmentForId(viewData.id.toUInt()); Plasma::Containment *viewcontainment = containmentForId(viewData.id.toUInt());
if (viewcontainment) { if (viewcontainment) {
QAction *removeaction = viewcontainment->actions()->action("remove"); viewcontainment->setImmutability(Plasma::Types::Mutable);
if (removeaction) { viewcontainment->destroy();
removeaction->trigger();
}
} }
} }