mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 05:48:01 -05:00
Update feelingLucky
This commit is contained in:
parent
f595e7247b
commit
a10beebe68
@ -86,21 +86,19 @@ public enum SupportDialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public boolean feelingLucky(int sessionRenameCount, int totalRenameCount, int currentRevision, int lastSupportRevision, int supportRevisionCount) {
|
public boolean feelingLucky(int sessionRenameCount, int totalRenameCount, int currentRevision, int lastSupportRevision, int supportRevisionCount) {
|
||||||
if (isAppStore()) {
|
// ask for reviews at most once per revision
|
||||||
// ask for reviews at most once per revision
|
if (isAppStore() && currentRevision <= lastSupportRevision) {
|
||||||
if (currentRevision <= lastSupportRevision) {
|
return false;
|
||||||
return false;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// ask for reviews only when a significant number of files have been processed
|
// ask for reviews only when a significant number of files have been processed
|
||||||
if (sessionRenameCount <= 10 || totalRenameCount <= 5000) {
|
if (isAppStore() && sessionRenameCount <= 10 || totalRenameCount <= 5000) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ask for reviews at most every once in a while
|
// ask for reviews at most every once in a while
|
||||||
if (Math.random() <= 0.777) {
|
if (Math.random() <= 0.777) {
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// lucky if many files are processed in a single session
|
// lucky if many files are processed in a single session
|
||||||
|
Loading…
Reference in New Issue
Block a user