| 39 | } |
| 40 | |
| 41 | void NotifyUpdatesDialog::init(HINSTANCE hInst, NppData nppData, PluginList* pluginList) |
| 42 | { |
| 43 | _nppData = nppData; |
| 44 | _pluginList = pluginList; |
| 45 | |
| 46 | _updateList = _pluginList->getUpdateablePlugins(); |
| 47 | |
| 48 | tstring pluginConfigFilename(_pluginList->getVariableHandler()->getVariable(_T("CONFIGDIR"))); |
| 49 | pluginConfigFilename.append(_T("\\PluginManager.ini")); |
| 50 | |
| 51 | PluginListContainer::iterator iter = _updateList.begin(); |
| 52 | while (iter != _updateList.end()) |
| 53 | { |
| 54 | TCHAR ignoreVersion[20]; |
| 55 | ::GetPrivateProfileString(_T("IgnoreUpdates"), (*iter)->getName().c_str(), _T(""), ignoreVersion, 20, pluginConfigFilename.c_str()); |
| 56 | if (PluginVersion(ignoreVersion) == (*iter)->getVersion()) |
| 57 | iter = _updateList.erase(iter); |
| 58 | else |
| 59 | ++iter; |
| 60 | } |
| 61 | |
| 62 | |
| 63 | Window::init(hInst, nppData._nppHandle); |
| 64 | } |
| 65 | |
| 66 | |
| 67 | BOOL NotifyUpdatesDialog::updatesAvailable() |
no test coverage detected