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

update shared visual properly

This commit is contained in:
Michail Vourlakos 2020-03-16 16:55:48 +02:00
parent 2ad1a040b4
commit 8c97dcecc5

View File

@ -47,9 +47,10 @@ Layouts::Layouts(QObject *parent, Latte::Corona *corona)
QVector<int> roles;
roles << Qt::DisplayRole;
roles << Qt::UserRole;
roles << LAYOUTISSHAREDROLE;
roles << INMULTIPLELAYOUTSROLE;
emit dataChanged(index(0, MENUCOLUMN), index(rowCount(), SHAREDCOLUMN), roles);
emit dataChanged(index(0, NAMECOLUMN), index(rowCount()-1, SHAREDCOLUMN), roles);
});
connect(m_corona->layoutsManager(), &Latte::Layouts::Manager::currentLayoutNameChanged, this, &Layouts::updateActiveStates);