From 28e712c8a303d4996c927d10461148b1ccff368c Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Fri, 6 Jun 2025 15:06:11 +0200 Subject: Add version of MO2 plugin loaded in logs. (#2252) --- src/organizer_en.ts | 22 +++++++++++----------- src/plugincontainer.cpp | 7 ++++--- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/organizer_en.ts b/src/organizer_en.ts index b3e04b09..b4d85290 100644 --- a/src/organizer_en.ts +++ b/src/organizer_en.ts @@ -5996,48 +5996,48 @@ Continue? PluginContainer - + Plugin error - + Mod Organizer failed to load the plugin '%1' last time it was started. - + The plugin can be skipped for this session, blacklisted, or loaded normally, in which case it might fail again. Blacklisted plugins can be re-enabled later in the settings. - + Skip this plugin - + Blacklist this plugin - + Load this plugin - + Some plugins could not be loaded - - + + Description missing - + The following plugins could not be loaded. The reason may be missing dependencies (i.e. python) or an outdated version: @@ -7612,7 +7612,7 @@ Destination: - + failed to initialize plugin %1: %2 diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index c73d4566..dcb2bc7d 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -814,7 +814,8 @@ std::vector PluginContainer::loadProxied(const QString& filepath, if (IPlugin* proxied = registerPlugin(proxiedPlugin, filepath, proxy); proxied) { - log::debug("loaded plugin '{}' from '{}' - [{}]", proxied->name(), + log::debug("loaded plugin '{}@{}' from '{}' - [{}]", proxied->name(), + proxied->version().canonicalString(), QFileInfo(filepath).fileName(), implementedInterfaces(proxied).join(", ")); @@ -863,8 +864,8 @@ QObject* PluginContainer::loadQtPlugin(const QString& filepath) } else { QObject* object = pluginLoader->instance(); if (IPlugin* plugin = registerPlugin(object, filepath, nullptr); plugin) { - log::debug("loaded plugin '{}' from '{}' - [{}]", plugin->name(), - QFileInfo(filepath).fileName(), + log::debug("loaded plugin '{}@{}' from '{}' - [{}]", plugin->name(), + plugin->version().canonicalString(), QFileInfo(filepath).fileName(), implementedInterfaces(plugin).join(", ")); m_PluginLoaders.push_back(pluginLoader.release()); return object; -- cgit v1.3.1