<string id="24041">Install from zip file</string>
<string id="24042">Downloading %i%%</string>
<string id="24043">Available Updates</string>
+ <string id="24044">Dependencies not met</string>
+ <string id="24045">Add-on does not have the correct structure</string>
<string id="24050">Available Add-ons</string>
<string id="24051">Version:</string>
// it may be better to install the dependencies first to minimise the chance of an addon becoming orphaned due to
// missing deps.
if (!CheckDependencies(addon))
+ {
+ g_application.m_guiDialogKaiToast.QueueNotification(addon->Icon(), addon->Name(), g_localizeStrings.Get(24044), TOAST_DISPLAY_TIME, false);
return false;
+ }
if (background)
{
CStdString zipDir;
URIUtils::CreateArchivePath(zipDir, "zip", path, "");
if (!CDirectory::GetDirectory(zipDir, items) || items.Size() != 1 || !items[0]->m_bIsFolder)
+ {
+ g_application.m_guiDialogKaiToast.QueueNotification("", path, g_localizeStrings.Get(24045), TOAST_DISPLAY_TIME, false);
return false;
+ }
// TODO: possibly add support for github generated zips here?
CStdString archive = URIUtils::AddFileToFolder(items[0]->m_strPath, "addon.xml");
// install the addon
return DoInstall(addon);
}
+ g_application.m_guiDialogKaiToast.QueueNotification("", path, g_localizeStrings.Get(24045), TOAST_DISPLAY_TIME, false);
return false;
}