Commit 6bc4bd52 authored by Yue-Lan's avatar Yue-Lan
Browse files

do not use kill when office previewing anymore.

如果将正在运行的unoconv子进程杀死,虽然仍然能够进行格式转换和预览,但是libreoffice会出现异常,无法打开。

现在采用一种更加合理的处理方式:
如果正在进行格式转换,下一个预览文件将在此次格式转换完成后进行;
进行格式转换的文件从概念上看永远不多于两个,一个是doing中的文件,一个是todo的文件;
当doing文件处理完成以后,如果有todo文件,则它成为doing文件;
当有新的office文件需要预览时,它根据当时条件成为新的todo或doing文件。
parent d8c2cc85
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment