mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 05:14:41 +02:00
Show installed plugin versions in Debug Info dialog
Fix #11284, close #11662
This commit is contained in:
parent
74395977bb
commit
77a53ebd2f
@ -780,10 +780,15 @@ bool PluginsManager::allocateMarker(int numberRequired, int *start)
|
||||
generic_string PluginsManager::getLoadedPluginNames() const
|
||||
{
|
||||
generic_string pluginPaths;
|
||||
for (size_t i = 0; i < _loadedDlls.size(); ++i)
|
||||
PluginUpdateInfo pl;
|
||||
for (const auto &dll : _loadedDlls)
|
||||
{
|
||||
pluginPaths += _loadedDlls[i]._fileName;
|
||||
pluginPaths += TEXT(" ");
|
||||
pl = PluginUpdateInfo(dll._fullFilePath, dll._fileName);
|
||||
pluginPaths += TEXT("\r\n ");
|
||||
pluginPaths += dll._displayName;
|
||||
pluginPaths += TEXT(" (");
|
||||
pluginPaths += pl._version.toString();
|
||||
pluginPaths += TEXT(")");
|
||||
}
|
||||
return pluginPaths;
|
||||
}
|
||||
|
@ -65,8 +65,13 @@ struct LoadedDllInfo
|
||||
{
|
||||
generic_string _fullFilePath;
|
||||
generic_string _fileName;
|
||||
generic_string _displayName;
|
||||
|
||||
LoadedDllInfo(const generic_string & fullFilePath, const generic_string & fileName) : _fullFilePath(fullFilePath), _fileName(fileName) {};
|
||||
LoadedDllInfo(const generic_string & fullFilePath, const generic_string & fileName) : _fullFilePath(fullFilePath), _fileName(fileName)
|
||||
{
|
||||
// the plugin module's name, without '.dll'
|
||||
_displayName = fileName.substr(0, fileName.find_last_of('.'));
|
||||
};
|
||||
};
|
||||
|
||||
class PluginsManager
|
||||
|
Loading…
x
Reference in New Issue
Block a user