This commit is contained in:
Alayan-stk-2 2018-08-19 03:32:05 +02:00 committed by auriamg
parent 926ad522ce
commit da2294d8ac

View File

@ -520,14 +520,26 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
{
// Don't go to addons if there is no internet, unless some addons are
// already installed (so that you can delete addons without being online).
if(UserConfigParams::m_internet_status!=RequestManager::IPERM_ALLOWED &&
!addons_manager->anyAddonsInstalled())
if(UserConfigParams::m_internet_status!=RequestManager::IPERM_ALLOWED)
{
new MessageDialog(_("You can not download addons without internet access. "
"If you want to download addons, go to options, select "
" tab 'User Interface', and edit "
"\"Connect to the Internet\"."));
return;
if (!addons_manager->anyAddonsInstalled())
{
new MessageDialog(_("You can not download addons without internet access. "
"If you want to download addons, go to options, select "
"the 'User Interface' tab, and check "
"\"Connect to the Internet\"."));
return;
}
else
{
AddonsScreen::getInstance()->push();
new MessageDialog(_("You can not download addons without internet access. "
"If you want to download addons, go to options, select "
"the 'User Interface' tab, and check "
"\"Connect to the Internet\".\n\n"
"You can however delete already downloaded addons."));
return;
}
}
AddonsScreen::getInstance()->push();
}