Selecting empty pages makes GUI focus jump
Brought to you by:
ra28145
Hey there,
I have the issue that the active page always jumps back to the beginning of the list, when I want to select all blank pages to remove them. This is very annoying. See attached video. "Edit / Choose / Empty" does not work good for me.
Is this reproducable and and fixable?
Regards,
zzz
I'm in the middle of porting the code from Perl to Python. I see your problem, though, and have an idea how to fix it. I'll take another look after releasing the Python-based version.
Thanks for the info. I'm looking forward to it. :) Is there an approximate ETA?
The first Python commits were 2 years ago, preceded by my writing some code to automate some of the Perl->Python transcription. I think I've transcribed everything, and I'm working on the last of the GUI bugs. Then I've got to write a storage backend, as it is currently all in-memory. I'm hoping sometime this year.
I have no clue about it, but I can say, that the current restore mechanism works perfectly. Keep that, if possible.
Unfortunately, it doesn't. Firstly, it keeps a filehandle open for every page - which means that if you have a document with a couple of thousand pages, the system can run out of filehandles, which is bad.
Secondly, the pages are stored as image files with random hashes as names in tmp. This is all very well, until something causes everything to die, be it a bug in gscan2pdf, or somebody turning off the power of the computer. Either way, you are left with potentially lots of randomly-named image files and it is a pain to import and sort everything.
Hence my solution is to use an SQLite database to store the current document, which should solve both problems.