mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 16:58:51 -05:00
* 1/100 chance of donation reminder
This commit is contained in:
parent
2dd24e53a7
commit
cd41d45fd2
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user