mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fixed(dock): fix bug 2609
This commit is contained in:
parent
939b915b6c
commit
de24b59410
@ -170,8 +170,23 @@ void TrashPlugin::displayModeChanged(const Dock::DisplayMode displayMode)
|
||||
return;
|
||||
}
|
||||
|
||||
// if (displayMode == Dock::Fashion)
|
||||
m_proxyInter->itemAdded(this, pluginName());
|
||||
// else
|
||||
// m_proxyInter->itemRemoved(this, pluginName());
|
||||
}
|
||||
|
||||
void TrashPlugin::pluginSettingsChanged()
|
||||
{
|
||||
refreshPluginItemsVisible();
|
||||
}
|
||||
|
||||
void TrashPlugin::refreshPluginItemsVisible()
|
||||
{
|
||||
if (pluginIsDisable()) {
|
||||
m_proxyInter->itemRemoved(this, pluginName());
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_trashWidget) {
|
||||
m_proxyInter->itemAdded(this, pluginName());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,8 +60,11 @@ public:
|
||||
int itemSortKey(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||
void setSortKey(const QString &itemKey, const int order) Q_DECL_OVERRIDE;
|
||||
void displayModeChanged(const Dock::DisplayMode displayMode) Q_DECL_OVERRIDE;
|
||||
void pluginSettingsChanged() override;
|
||||
|
||||
private:
|
||||
void refreshPluginItemsVisible();
|
||||
|
||||
TrashWidget *m_trashWidget;
|
||||
QPointer<TipsWidget> m_tipsLabel;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user