forked from qt-creator/qt-creator
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:
@@ -1553,12 +1553,14 @@ void PluginManagerPrivate::checkForProblematicPlugins()
|
|||||||
? tr("%1 > About Plugins")
|
? tr("%1 > About Plugins")
|
||||||
.arg(QGuiApplication::applicationDisplayName())
|
.arg(QGuiApplication::applicationDisplayName())
|
||||||
: tr("Help > About Plugins");
|
: tr("Help > About Plugins");
|
||||||
const QString otherPluginsText = tr("The following plugins depend on "
|
const QString otherPluginsText
|
||||||
"%1 and are also disabled: %2.\n\n")
|
= tr("If you temporarily disable %1, the following plugins that depend on "
|
||||||
|
"it are also disabled: %2.\n\n")
|
||||||
.arg(spec->name(), dependentsList);
|
.arg(spec->name(), dependentsList);
|
||||||
const QString detailsText = (dependents.isEmpty() ? QString() : otherPluginsText)
|
const QString detailsText = (dependents.isEmpty() ? QString() : otherPluginsText)
|
||||||
+ tr("Disable plugins permanently in %1.").arg(pluginsMenu);
|
+ 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?")
|
"plugin. Temporarily disable the plugin?")
|
||||||
.arg(QGuiApplication::applicationDisplayName(), spec->name());
|
.arg(QGuiApplication::applicationDisplayName(), spec->name());
|
||||||
QMessageBox dialog;
|
QMessageBox dialog;
|
||||||
|
Reference in New Issue
Block a user