1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 00:15:02 -04:00

Show support dialog to power users (that use filebot only once but rename many many files)

This commit is contained in:
Reinhard Pointner 2016-08-02 18:12:45 +08:00
parent 426205dbf7
commit 91ec67f77d

View File

@ -113,9 +113,10 @@ public enum SupportDialog {
public static void maybeShow() {
int renameCount = HistorySpooler.getInstance().getPersistentHistoryTotalSize();
int renameLimit = 1000;
// show donation / review reminders to power users (more than 2000 renames)
if (renameCount >= 2000 && Math.random() >= 0.777) {
if ((renameCount >= renameLimit && Math.random() >= 0.777) || (HistorySpooler.getInstance().getSessionHistory().totalSize() >= renameLimit)) {
if (isAppStore()) {
AppStoreReview.show(renameCount);
} else {