diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2025-06-06 15:06:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 15:06:11 +0200 |
| commit | 28e712c8a303d4996c927d10461148b1ccff368c (patch) | |
| tree | 5034b43dec374bfceaaf54c6134b9b0e6d0e7fb0 /src | |
| parent | 87d0f2eeb6ca6612413ca41fd1f65c659d29280b (diff) | |
Add version of MO2 plugin loaded in logs. (#2252)
Diffstat (limited to 'src')
| -rw-r--r-- | src/organizer_en.ts | 22 | ||||
| -rw-r--r-- | 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?</source> <context> <name>PluginContainer</name> <message> - <location filename="plugincontainer.cpp" line="1103"/> + <location filename="plugincontainer.cpp" line="1106"/> <source>Plugin error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="1104"/> + <location filename="plugincontainer.cpp" line="1107"/> <source>Mod Organizer failed to load the plugin '%1' last time it was started.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="1107"/> + <location filename="plugincontainer.cpp" line="1110"/> <source>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.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="1112"/> + <location filename="plugincontainer.cpp" line="1115"/> <source>Skip this plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="1113"/> + <location filename="plugincontainer.cpp" line="1116"/> <source>Blacklist this plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="1114"/> + <location filename="plugincontainer.cpp" line="1117"/> <source>Load this plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="1212"/> + <location filename="plugincontainer.cpp" line="1215"/> <source>Some plugins could not be loaded</source> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="1215"/> - <location filename="plugincontainer.cpp" line="1235"/> + <location filename="plugincontainer.cpp" line="1218"/> + <location filename="plugincontainer.cpp" line="1238"/> <source>Description missing</source> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="1225"/> + <location filename="plugincontainer.cpp" line="1228"/> <source>The following plugins could not be loaded. The reason may be missing dependencies (i.e. python) or an outdated version:</source> <translation type="unfinished"></translation> </message> @@ -7612,7 +7612,7 @@ Destination:<byte value="xd"/> <translation type="unfinished"></translation> </message> <message> - <location filename="plugincontainer.cpp" line="851"/> + <location filename="plugincontainer.cpp" line="852"/> <source>failed to initialize plugin %1: %2</source> <translation type="unfinished"></translation> </message> 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<QObject*> 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; |
