You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/pyplugin_installer/installer.py
+33-30Lines changed: 33 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -71,15 +71,23 @@ def __init__(self):
71
71
repositories.setRepositoryData(key, "state", 3)
72
72
73
73
# look for obsolete plugins (the user-installed one is newer than core one)
74
-
foriinplugins.obsoletePlugins:
75
-
ifi=="plugin_installer":
76
-
# uninstall the installer itself
77
-
QMessageBox.warning(iface.mainWindow(), self.tr("QGIS Plugin Installer update"), self.tr("The Plugin Installer has been updated. Please restart QGIS prior to using it"))
# don't remove brutally other plugins, just inform
82
-
QMessageBox.warning(iface.mainWindow(), self.tr("QGIS Plugin Conflict:")+" "+plugins.localCache[i]["name"], "<b>"+plugins.localCache[i]["name"] +"</b><br/><br/>"+self.tr("The Plugin Installer has detected an obsolete plugin which masks a newer version shipped with this QGIS version. This is likely due to files associated with a previous installation of QGIS. Please use the Plugin Installer to remove that older plugin in order to unmask the newer version shipped with this copy of QGIS."))
msg.addButton( self.tr("I will uninstall it later"), QMessageBox.RejectRole )
81
+
msg.setText( "%s <b>%s</b><br/><br/>%s"% ( self.tr("Obsolete plugin:"), plugin["name"] , self.tr("QGIS has detected an obsolete plugin that masks its more recent version shipped with this copy of QGIS. This is likely due to files associated with a previous installation of QGIS. Do you want to remove the old plugin right now and unmask the more recent version?") ) )
# if the uninstalled plugin is the installer itself, reload it and quit
371
-
ifkey=="plugin_installer":
372
-
try:
373
-
QMessageBox.information(iface.mainWindow(), self.tr("QGIS Python Plugin Installer"), self.tr("Plugin Installer update uninstalled. Plugin Installer will now close and revert to its primary version. You can find it in the Plugins menu and continue operation."))
0 commit comments