Fixed the repeated opening of files and ignoring the duplicate indexing of threads.
Merge branch 'dev/temp' of github.com:scrollback/scrollback into dev/temp