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:
parent
2ad1a040b4
commit
8c97dcecc5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user