* 1/100 chance of donation reminder

This commit is contained in:
Reinhard Pointner 2013-03-02 10:44:42 +00:00
parent 2dd24e53a7
commit cd41d45fd2
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ public class Main {
int donateStep = 10000;
int usage = history.totalSize();
if (usage / donateStep > donateLv || new Random().nextInt(1000) == 777) {
if (usage / donateStep > donateLv || new Random().nextInt(100) == 42) {
persistentDonateLv.setValue(String.valueOf(Math.max(donateLv + 1, usage / donateStep)));
String message = String.format(Locale.ROOT, "<html><p style='font-size:16pt; font-weight:bold'>Thank you for using FileBot!</p><br><p>It has taken many nights to develop this application. If you enjoy using it,<br>please consider a donation to the author of this software. It will help to<br>make FileBot even better!<p><p style='font-size:14pt; font-weight:bold'>You've renamed %,d files.</p><br><html>", history.totalSize());