mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-09 19:43:31 +02:00
plugins: fix background of installed plugin
Change-Id: I0b890270dc10ddb3d77d10f07252d5da7266ba7f
This commit is contained in:
parent
b95abbc891
commit
75a154f4fe
4 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ PluginListModel::data(const QModelIndex& index, int role) const
|
|||
case Role::PluginIcon:
|
||||
return QVariant(details.iconPath);
|
||||
case Role::PluginImage:
|
||||
return QVariant(details.imagePath);
|
||||
return QVariant(details.backgroundPath);
|
||||
case Role::IsLoaded:
|
||||
return QVariant(details.loaded);
|
||||
case Role::PluginAuthor:
|
||||
|
|
|
@ -210,7 +210,7 @@ PluginStoreListModel::rowFromPluginId(const QString& pluginId) const
|
|||
const auto it = std::find_if(plugins_.begin(),
|
||||
plugins_.end(),
|
||||
[&pluginId](const QVariantMap& p) {
|
||||
return p["name"].toString() == pluginId;
|
||||
return p["id"].toString() == pluginId;
|
||||
});
|
||||
if (it != plugins_.end()) {
|
||||
return std::distance(plugins_.begin(), it);
|
||||
|
|
|
@ -45,7 +45,7 @@ struct PluginDetails
|
|||
QString version = "";
|
||||
QString author = "";
|
||||
QString iconPath = "";
|
||||
QString imagePath = "";
|
||||
QString backgroundPath = "";
|
||||
bool loaded = false;
|
||||
};
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ PluginModel::getPluginDetails(const QString& path)
|
|||
result.description = details["description"];
|
||||
result.path = path;
|
||||
result.iconPath = details["iconPath"];
|
||||
result.imagePath = details["imagePath"];
|
||||
result.backgroundPath = details["backgroundPath"];
|
||||
result.author = details["author"];
|
||||
result.version = details["version"];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue