koreader / kindlepdfviewer

(DEPRECATED, please use KOReader instead) A PDF (plus DJVU, ePub, TXT, CHM, FB2, HTML...) viewer made for e-ink framebuffer devices, using muPDF, djvulibre, crengine
GNU General Public License v3.0
498 stars 98 forks source link

filechooser dialog causing too many refreshes #840

Open dracodoc opened 11 years ago

dracodoc commented 11 years ago

When I moved a file to clipboard, I noticed there was 3 full refreshes in the procedure: 1 caused by file list change, 1 by pop up dialog, 1 by file list update or pop up dialog disappeared. And the operation of paste file from clipboard will have 2 full refreshes too.

I think the original method caused 3 refreshes for one operation is a little bit too much, so I changed the pop up dialog to the top message same with the "bookmark added" method. Now there will be only one full refresh for each operation.

Original: InfoMessage:inform("Moving files from clipboard...", DINFO_NODELAY, 0, MSGAUX) Now: InfoMessage:drawTopMsg(("Moving files from clipboard..."))

I knew some people may prefer the normal dialog instead of the top message, so I'm just suggesting an option here. Whether to change it depend on whether you think the 3 full refreshes are OK.