diff --git a/frame/item/pluginsitem.cpp b/frame/item/pluginsitem.cpp index 667871ca3..612d530ce 100644 --- a/frame/item/pluginsitem.cpp +++ b/frame/item/pluginsitem.cpp @@ -68,8 +68,7 @@ PluginsItem::PluginsItem(PluginsItemInterface *const pluginInter, const QString m_gsettings->setParent(this); connect(m_gsettings, &QGSettings::changed, this, &PluginsItem::onGSettingsChanged); - } - else { + } else { m_gsettings = nullptr; } } @@ -123,7 +122,7 @@ QString PluginsItem::pluginName() const DockItem::ItemType PluginsItem::itemType() const { - if (m_pluginInter->type() == PluginsItemInterface::normal) { + if (m_pluginInter->type() == PluginsItemInterface::Normal) { return Plugins; } else { return Launcher; diff --git a/interfaces/pluginsiteminterface.h b/interfaces/pluginsiteminterface.h index 613365dec..dc09082aa 100644 --- a/interfaces/pluginsiteminterface.h +++ b/interfaces/pluginsiteminterface.h @@ -54,7 +54,7 @@ public: virtual const QString pluginName() const = 0; virtual const QString pluginDisplayName() const { return QString(); } - virtual PluginType type() { return normal; } + virtual PluginType type() { return Normal; } /// /// \brief init /// init your plugins, you need to save proxyInter to m_proxyInter diff --git a/plugins/show-desktop/showdesktopplugin.cpp b/plugins/show-desktop/showdesktopplugin.cpp index 755b67814..ce979b421 100644 --- a/plugins/show-desktop/showdesktopplugin.cpp +++ b/plugins/show-desktop/showdesktopplugin.cpp @@ -158,7 +158,7 @@ void ShowDesktopPlugin::pluginSettingsChanged() PluginsItemInterface::PluginType ShowDesktopPlugin::type() { - return PluginType::fixed; + return PluginType::Fixed; } void ShowDesktopPlugin::updateBatteryVisible()