mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
UX - Switch from level info to level success when appropriate
This commit is contained in:
parent
2a3cdfd4c5
commit
bf4496437e
@ -458,7 +458,7 @@ class QgsPluginInstaller(QObject):
|
||||
plugins.rebuild()
|
||||
self.exportPluginsToManager()
|
||||
QApplication.restoreOverrideCursor()
|
||||
iface.pluginManagerInterface().pushMessage(self.tr("Plugin uninstalled successfully"), Qgis.Info)
|
||||
iface.pluginManagerInterface().pushMessage(self.tr("Plugin uninstalled successfully"), Qgis.Success)
|
||||
|
||||
settings = QgsSettings()
|
||||
settings.remove("/PythonPlugins/" + key)
|
||||
@ -677,7 +677,7 @@ class QgsPluginInstaller(QObject):
|
||||
else:
|
||||
msg = "<b>%s:</b> %s" % (self.tr("Plugin installation failed"), infoString)
|
||||
|
||||
level = Qgis.Info if success else Qgis.Critical
|
||||
level = Qgis.Success if success else Qgis.Critical
|
||||
iface.pluginManagerInterface().pushMessage(msg, level)
|
||||
|
||||
def processDependencies(self, plugin_id):
|
||||
@ -697,10 +697,10 @@ class QgsPluginInstaller(QObject):
|
||||
self.installPlugin(dependency_plugin_id, stable=action_data['use_stable_version'])
|
||||
if action_data['action'] == 'install':
|
||||
iface.pluginManagerInterface().pushMessage(self.tr("Plugin dependency <b>%s</b> successfully installed") %
|
||||
dependency_plugin_id, Qgis.Info)
|
||||
dependency_plugin_id, Qgis.Success)
|
||||
else:
|
||||
iface.pluginManagerInterface().pushMessage(self.tr("Plugin dependency <b>%s</b> successfully upgraded") %
|
||||
dependency_plugin_id, Qgis.Info)
|
||||
dependency_plugin_id, Qgis.Success)
|
||||
except Exception as ex:
|
||||
if action_data['action'] == 'install':
|
||||
iface.pluginManagerInterface().pushMessage(self.tr("Error installing plugin dependency <b>%s</b>: %s") %
|
||||
|
@ -208,7 +208,7 @@ void QgsOracleNewConnection::testConnection()
|
||||
{
|
||||
// Database successfully opened; we can now issue SQL commands.
|
||||
bar->pushMessage( tr( "Connection to %1 was successful." ).arg( txtName->text() ),
|
||||
Qgis::MessageLevel::Info );
|
||||
Qgis::MessageLevel::Success );
|
||||
// free connection resources
|
||||
QgsOracleConnPool::instance()->releaseConnection( conn );
|
||||
}
|
||||
|
@ -266,7 +266,7 @@ void QgsPgNewConnection::testConnection()
|
||||
|
||||
// Database successfully opened; we can now issue SQL commands.
|
||||
bar->pushMessage( tr( "Connection to %1 was successful." ).arg( txtName->text() ),
|
||||
Qgis::MessageLevel::Info );
|
||||
Qgis::MessageLevel::Success );
|
||||
|
||||
// free pg connection resources
|
||||
conn->unref();
|
||||
|
Loading…
x
Reference in New Issue
Block a user