ExtensionSystem: Clarify text in "Problematic Plugin" dialog

If Qt Creator crashed at startup, we show a dialog pointing fingers to a
plugin, the next time Qt Creator is started.

Make clearer that the problem was the _last_ time Qt Creator was
started, not during the current startup.

Make clearer that the "following plugins are disabled too" refers to the
case when the user decides to temporarily disable the plugin.

Change-Id: Ie6cfed2e445b9e5c1598783474ce8a169d82bc3a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Eike Ziller
2022-03-28 09:26:31 +02:00
parent 64170a788a
commit f613df1075

View File

@@ -1553,12 +1553,14 @@ void PluginManagerPrivate::checkForProblematicPlugins()
? tr("%1 > About Plugins")
.arg(QGuiApplication::applicationDisplayName())
: tr("Help > About Plugins");
const QString otherPluginsText = tr("The following plugins depend on "
"%1 and are also disabled: %2.\n\n")
.arg(spec->name(), dependentsList);
const QString otherPluginsText
= tr("If you temporarily disable %1, the following plugins that depend on "
"it are also disabled: %2.\n\n")
.arg(spec->name(), dependentsList);
const QString detailsText = (dependents.isEmpty() ? QString() : otherPluginsText)
+ tr("Disable plugins permanently in %1.").arg(pluginsMenu);
const QString text = tr("It looks like %1 closed because of a problem with the \"%2\" "
const QString text = tr("The last time you started %1, it seems to have closed because "
"of a problem with the \"%2\" "
"plugin. Temporarily disable the plugin?")
.arg(QGuiApplication::applicationDisplayName(), spec->name());
QMessageBox dialog;