From 5ce869b82f28c4d288b266d7dee03aa4898fff21 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 12 Mar 2017 19:54:33 +0100 Subject: [PATCH] Version 1.4.2 - New Options menu in UI to configure the program (minimalist for now) - Improve progress reporting (smoother updates, more details) - Better cover support for local files --- README.md | 4 ++-- VERSION | 2 +- changelog.md | 4 +++- ...es.jar => nikiroo-utils-1.4.1-sources.jar} | Bin 55389 -> 56418 bytes src/be/nikiroo/fanfix/Library.java | 7 +------ .../fanfix/reader/LocalReaderFrame.java | 6 +++--- 6 files changed, 10 insertions(+), 13 deletions(-) rename libs/{nikiroo-utils-1.4.0-sources.jar => nikiroo-utils-1.4.1-sources.jar} (87%) diff --git a/README.md b/README.md index 14e4347..d9c47e3 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Currently missing, but either in progress or planned: - [ ] [Two Kinds](http://twokinds.keenspot.com/) - [ ] [Slightly damned](http://www.sdamned.com/) - [ ] Others? Any ideas? -- [ ] A GUI (work in progress) +- [x] A GUI (work in progress) - [x] Make one - [x] Make it run when no args passed - [x] Fix the UI, it is ugly @@ -108,7 +108,7 @@ Currently missing, but either in progress or planned: - [x] Show a list of types - [x] ..in the menu - [x] ..as a screen view - - [ ] options screen + - [x] options screen - [ ] A TUI reader - [ ] Check if it can work on Android - [x] First checks: it should work, but with changes diff --git a/VERSION b/VERSION index 347f583..9df886c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.1 +1.4.2 diff --git a/changelog.md b/changelog.md index 1aa90a1..598fbcd 100644 --- a/changelog.md +++ b/changelog.md @@ -1,8 +1,10 @@ # Fanfix -## Version (wip) +## Version 1.4.2 - New Options menu in UI to configure the program (minimalist for now) +- Improve progress reporting (smoother updates, more details) +- Better cover support for local files ## Version 1.4.1 diff --git a/libs/nikiroo-utils-1.4.0-sources.jar b/libs/nikiroo-utils-1.4.1-sources.jar similarity index 87% rename from libs/nikiroo-utils-1.4.0-sources.jar rename to libs/nikiroo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+++ b/src/be/nikiroo/fanfix/Library.java @@ -527,12 +527,7 @@ public class Library { "Cannot load file from library: " + file.getPath(), e)); } finally { - pgFiles.setProgress(pgFiles.getProgress() + 1); - - System.out.println("files: " + pgFiles.getProgress() - + "/" + pgFiles.getMax()); - System.out.println("dirs : " + pgDirs.getProgress() - + "/" + pgDirs.getMax()); + pgFiles.add(1); } } diff --git a/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java b/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java index ca49470..bb77655 100644 --- a/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java +++ b/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java @@ -648,10 +648,10 @@ class LocalReaderFrame extends JFrame { public void run() { run.run(); refreshBooks(); - reload.setProgress(100); + reload.done(); if (!pg.isDone()) { // will trigger pgBar ActionListener: - pg.setProgress(pg.getMax()); + pg.done(); } } }, "outOfUi thread").start(); @@ -745,7 +745,7 @@ class LocalReaderFrame extends JFrame { onSuccess.run(); } } - pgOnSuccess.setProgress(100); + pgOnSuccess.done(); } }); } -- 2.27.0