Centralize a PluginManager::isShuttingDown() status

Instead of keeping track of this in plugins individually.

Change-Id: Ia2650f0f647d4a63d2010cef688aa56f6020c338
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2023-05-22 13:21:57 +02:00
parent 323c58fd20
commit ee6789c523
14 changed files with 29 additions and 43 deletions

View File

@@ -135,11 +135,6 @@ void EmacsKeysPlugin::extensionsInitialized()
{
}
ExtensionSystem::IPlugin::ShutdownFlag EmacsKeysPlugin::aboutToShutdown()
{
return SynchronousShutdown;
}
void EmacsKeysPlugin::editorAboutToClose(IEditor *editor)
{
auto w = qobject_cast<QPlainTextEdit*>(editor->widget());

View File

@@ -57,7 +57,6 @@ public:
void initialize() override;
void extensionsInitialized() override;
ShutdownFlag aboutToShutdown() override;
private:
void editorAboutToClose(Core::IEditor *editor);