Add back warning from proxy.

This commit is contained in:
Mikaël Capelle
2022-04-28 22:47:49 +02:00
parent 68060b0e6b
commit 275acba6dd
+17 -14
View File
@@ -116,20 +116,23 @@ bool ProxyPython::init(IOrganizer* moInfo)
}
if (m_MOInfo && m_MOInfo->persistent(name(), "tryInit", false).toBool()) {
// m_LoadFailure = FailureType::INITIALIZATION;
// if (QMessageBox::question(parentWidget(), tr("Python Initialization failed"),
// tr("On a previous start the Python Plugin failed to initialize.\n"
// "Do you want to try initializing python again (at the risk of another
// crash)?\n" "Suggestion: Select \"no\", and click the warning sign for
// further help. Afterwards you have to re-enable the python plugin."),
// QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::No) {
// // we force enabled here (note: this is a persistent settings since MO2 2.4
// or something), plugin
// // usually should not handle enabled/disabled themselves but this is a base
// plugin so... m_MOInfo->setPersistent(name(), "enabled", false, true);
// return true;
// }
m_LoadFailure = FailureType::INITIALIZATION;
if (QMessageBox::question(
parentWidget(), tr("Python Initialization failed"),
tr("On a previous start the Python Plugin failed to initialize.\n"
"Do you want to try initializing python again (at the risk of "
"another crash)?\n "
"Suggestion: Select \"no\", and click the warning sign for further "
"help.Afterwards you have to re-enable the python plugin."),
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No) == QMessageBox::No) {
// we force enabled here (note: this is a persistent settings since MO2 2.4
// or something), plugin
// usually should not handle enabled/disabled themselves but this is a base
// plugin so...
m_MOInfo->setPersistent(name(), "enabled", false, true);
return true;
}
}
if (m_MOInfo) {