From 91ec67f77dbfdee1cfa84e08b3c3df04fd187058 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 2 Aug 2016 18:12:45 +0800 Subject: [PATCH] Show support dialog to power users (that use filebot only once but rename many many files) --- source/net/filebot/ui/SupportDialog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/ui/SupportDialog.java b/source/net/filebot/ui/SupportDialog.java index 70e616e8..791982ea 100644 --- a/source/net/filebot/ui/SupportDialog.java +++ b/source/net/filebot/ui/SupportDialog.java @@ -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 {