Limit maxCoverUpdatePerIteration to range 1..20

This commit is contained in:
craig.p.drummond
2013-09-30 18:18:04 +00:00
committed by craig.p.drummond
parent f81175b798
commit d28cf9ea50
2 changed files with 3 additions and 3 deletions

4
README
View File

@@ -261,13 +261,13 @@ maxCoverFindPerIteration
UI event loop iteration. This is set to 5 by default. Increasing this will
cause more covers to be loaded in the main UI thread - which will speed up
loading, but might make the UI apear to block. Reducing this should reduce
lag when scrolling the Albums view.
lag when scrolling the Albums view. (Values 0..20 are acceptable)
maxCoverUpdatePerIteration
Covers the are not located and loaded in the UI thread, will be loaded in a
background thread. These then need to be sent to the UI thread to be
displayed. This config controls the number of covers that are sent in one
batch. The default is again 5.
batch. The default is again 5. (Values 1..20 are acceptable)
e.g.
[General]

View File

@@ -724,7 +724,7 @@ int Settings::maxCoverFindPerIteration()
int Settings::maxCoverUpdatePerIteration()
{
int v=GET_INT("maxCoverUpdatePerIteration", 5);
return v<0 ? 5 : (v>20 ? 20 : v);
return v<1 ? 5 : (v>20 ? 20 : v);
}
void Settings::removeConnectionDetails(const QString &v)