1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-11 13:18:13 +03:00

update CustomIndicator button onParentView change

This commit is contained in:
Michail Vourlakos 2020-07-31 20:22:51 +03:00
parent 45d09b2cd4
commit c64354c048
2 changed files with 11 additions and 1 deletions

View File

@ -51,6 +51,7 @@ IndicatorUiManager::IndicatorUiManager(ViewPart::PrimaryConfigView *parent)
IndicatorUiManager::~IndicatorUiManager()
{
m_uidata.clear();
}
bool IndicatorUiManager::contains(const QString &type)

View File

@ -55,7 +55,16 @@ LatteComponents.ComboBoxButton{
target: latteView.indicator
onCustomPluginsCountChanged: {
custom.reloadModel();
custom.updateButtonInformation()
custom.updateButtonInformation();
}
}
Connections {
target: viewConfig
onIsReadyChanged: {
if (viewConfig.isReady) {
custom.updateButtonInformation();
}
}
}