return message;
}
-} // namespace anon
+} // namespace
graphics::PreviewImage const *
void RenderPreview::addPreview(docstring const & latex_snippet,
- Buffer const & buffer,
+ Buffer const & buffer,
bool ignore_lyxrc)
{
if (lyxrc.preview == LyXRC::PREVIEW_OFF && !ignore_lyxrc)
void RenderPreview::addPreview(docstring const & latex_snippet,
- graphics::PreviewLoader & ploader,
+ graphics::PreviewLoader & ploader,
bool ignore_lyxrc)
{
if (lyxrc.preview == LyXRC::PREVIEW_OFF && !ignore_lyxrc)
{
if (!monitoring()) {
monitor_ = FileSystemWatcher::activeMonitor(filename_);
+ // Disconnected at the same time as this is destroyed.
monitor_->connect([this](bool /* exists */){ changed_(); });
}
}