mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
[Plugin manager] Add a label for built-in plugins explaining they aren't uninstallable.
This commit is contained in:
parent
ea0e09b322
commit
87d087bbfd
@ -810,6 +810,13 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
|
|||||||
"</table>" ).arg( tr( "This plugin is trusted" ) );
|
"</table>" ).arg( tr( "This plugin is trusted" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( metadata->value( QStringLiteral( "readonly" ) ) == QLatin1String( "true" ) )
|
||||||
|
{
|
||||||
|
html += QString( "<table bgcolor=\"#90EEE9\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">"
|
||||||
|
" <tr><td width=\"100%\" style=\"color:#660000\"><b>%1</b></td></tr>"
|
||||||
|
"</table>" ).arg( tr( "This is a system plugin, so you can't uninstall it" ) );
|
||||||
|
}
|
||||||
|
|
||||||
// Now the metadata
|
// Now the metadata
|
||||||
|
|
||||||
html += QLatin1String( "<table cellspacing=\"4\" width=\"100%\"><tr><td>" );
|
html += QLatin1String( "<table cellspacing=\"4\" width=\"100%\"><tr><td>" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user