2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
Tigran Aivazian
e3ae08c872 Crash when switching mode + other fixes
1. When switching file manager mode from restricted (formerly known as
"Beginner") to unrestricted (formerly known as "Expert" or "Advanced")
and paging down the file list KPV would crash.
2. Clear up the mess with the file manager mode --- we only need two
modes: RESTRICTED and UNRESTRICTED. When we need more we'll add them. No
need to pollute code with future "what if"s.
3. Setting file manager mode function has no place in unireader (it was
formerly needed because the event notifications was dependent on it ---
not anymore).
4. Bugfix: show the correct number of books in UNRESTRICTED file manager
mode when pressing fiveway Right key on a directory.
2012-11-28 18:56:55 +00:00
Tigran Aivazian
65e9f2fed3 Restore full filemanager functionality
Prior to introduction of the reader-chooser infrastructure we had a very
useful feature of browsing (and therefore
copying/moving/deleting/renaming/creating) filesystem tree accessing
arbitrary files if the user privilege mode is set to any value higher
than BEGINNER.
This patch restores this functionality by checking the privilege levels
in readerchooser and returning CREReader for any file type if there is
no other reader associated with it (including files with no extension).
2012-11-20 12:06:30 +00:00
kai771
5a3eca91d2 moved comment about pdb from readerchooser.lua to defaults.lua 2012-11-14 19:44:02 +01:00
kai771
01331ed4d1 explicitly require defaults in readerchooser.lua 2012-11-14 18:20:47 +01:00
kai771
b14d79d225 Adds zip ext to PDFReader and makes extensions accesible through defaults.lua
A lot of manga comes as .zip, and not .cbz (for all intents and purposes, it
is the same thing, just the extension is different). This allows the user to
choose the reader to open her zip files - PDFReader or CREReader, in the same
way she can choose to use PDFReader or PDFReflow for pdf files. I also moved
the list of supported extensions to defaults.lua.
2012-11-14 17:41:02 +01:00
chrox
31f384255c bugfix: readerchooser dialog should not be visible when opening a file
when select a reader to open a document the readerchooser dialog is
overlayed with opening file notification window. The overlayed three
windows(file chooser, reader chooser and notification window) will make
users feel unconfortable easpecially when opening in koptreader which
usually freezes the screen for several seconds.

With this patch the reader chooser dialog is closed before the opening
file noticifation is shown up.
2012-11-10 20:40:43 +08:00
chrox
2126166233 bugfix: reader chooser dialog is shown properly
When there are reader preferences table but preference for the file type
of which the file is to be opened is not available, reader chooser
should show up.
I changed `last_reader` and `default_reader` to `reader_association` and
`reader_preferences` respectively for clearness.
2012-11-07 16:52:06 +08:00
chrox
af13491b6c bugfix: redefine reader association policy
Users can still use default reader for specific type. The "Remember
this file" option will add exception to the predefined reader
preference. And exception for a document can be made with the "Alt+C"
command after opening the doc. This patch fixed the bug reported on
issue #480 by @dracodoc.
2012-11-07 14:13:47 +08:00
chrox
251f002ee0 use fixed width and height window to get better UI in DXG 2012-10-26 13:15:36 +08:00
chrox
d870d1c905 using local variable optbar_T instead of self.options_bar_T 2012-10-23 16:43:59 +08:00
chrox
5ad0805410 use PDFReflow and DJVUReflow to differentiate between KOPTReader and
PDFReader/DJVUReader
2012-10-23 13:51:03 +08:00
chrox
f48a87bfdf disable exiting readerchooser dialog with Home key 2012-10-23 03:26:50 +08:00
chrox
84971cd941 bugfix: return the first reader found 2012-10-23 03:01:32 +08:00
chrox
067be63258 add option of remembering default reader for certain file type 2012-10-23 02:47:54 +08:00
chrox
c3be6ef214 Cleanup: using length operator 2012-10-22 23:58:04 +08:00
chrox
34d8c32e26 bugfix: close docsetting so that changes take effects 2012-10-22 22:04:09 +08:00
chrox
2fd933abc9 remove extension.lua and implement getReaderByType in readerchooser.lua 2012-10-22 22:04:09 +08:00
chrox
e5e99e3d7f bugfix: fix inconsistency in variable name 2012-10-22 22:04:09 +08:00
chrox
e42403bb85 add readerchooser to prompt users to select alternative readers 2012-10-22 22:04:09 +08:00