Every opening of the Library (its nav clicked, while on it too, or back
from another page) read the library and drew the whole page again,
changed or not. The rows were replaced under the reader's pointer, so
the trash shown on a row's hover went away mid-click, and
library-row-remove's click measured a row already gone: red about half
the time in Chromium since 10-29 (the test opens the page at
?view=library, then clicks Library again). Opening the page now draws it
again only when the library changed, or on RTK's tab, which is asked
again each time; a language change still draws it all again.
Found by logging render()'s callers: two opens, the second drawing the
same library 10-20ms after the first.
Run on mote at this head (7e201ce20 + this): new
library-open-again.test.cjs (Chromium and WebKit, 1100/420px, en/zh)
10/10, red on the old code ("the row was drawn over again, nothing
changed"). library-row-remove alone 22/22 three runs (it was red 3 of 3
at 7e201ce20). library*, i18n* and plugin* GUI files, both engines:
1914 pass, 6 fail, the 6 in plugin-move-unserved and plugin-card-update,
red the same way on a clean 7e201ce20 copy (filed separately).
go test ./internal/gui: ok.