Skip to content

Commit

Permalink
addons: only disallow non-forced repository updates while on the logi…
Browse files Browse the repository at this point in the history
…n screen
  • Loading branch information
Montellese committed Mar 6, 2015
1 parent 7659f21 commit b6df190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/addons/AddonInstaller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void CAddonInstaller::UpdateRepos(bool force, bool wait)
}

// don't run repo update jobs while on the login screen which runs under the master profile
if((g_windowManager.GetActiveWindow() & WINDOW_ID_MASK) == WINDOW_LOGIN_SCREEN)
if(!force && (g_windowManager.GetActiveWindow() & WINDOW_ID_MASK) == WINDOW_LOGIN_SCREEN)
return;

if (!force && m_repoUpdateWatch.IsRunning() && m_repoUpdateWatch.GetElapsedSeconds() < 600)
Expand Down

0 comments on commit b6df190

Please sign in to comment.