Registrations currently disabled due to spam. Contact me externally if you need an account

Skip to content

Avoid underflow when wrapping to last page in file browser

dana requested to merge dana/megagrrl:dana/filebrowser-wrap-underflow into master

Another bug i introduced with !8 (merged), sorry

The way i had this, selectedfile would underflow if direntry_count was a multiple of 10

ETA: Actually, my initial fix would underflow too if the directory was empty. It didn't crash, but it probably shouldn't do that anyway. I just wrapped the whole thing in the direntry_count condition

Edited by dana

Merge request reports

Loading