View Single Post
Old 08-21-2021, 12:46 PM   #33
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,953
Karma: 6361444
Join Date: Nov 2009
Device: many
Pushed that fix to master (ie. PageEdit can only be launched when current tab is xhtml or opf tab).

BTW, in Resource.cpp it seems the we note the file system last modified date on that resource file and if it ever changes, we emit a ResourceUpdatedOnDisk signal which ends with a call to LoadFromDisk.

I am not sure if this does exactly the same thing as a FileWatcher does but it might be enough to allow "Open With" on PageEdit's OPF to work for BetterRed without specifically
watching all of the xhtml files.

I am just not sure. I could not find any other mechanism that would allow an xhtml resource to detect its disk version has been modified underneath it (other than the official FileWatcher).
KevinH is online now   Reply With Quote