mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Reset require_fresh_start_ after buffer has been viewed/exported
The LFUN buffer-reset-export states to start afresh the export for the
next run, but in fact, the boolean was never reset, so that this was
done for all subsequent runs unless the buffer had been closed and
reopened.
Now the lfun does what it states and only acts on the next pass.
(cherry picked from commit e1cb15ee5d
)
This commit is contained in:
parent
1f6f3b4f0a
commit
91e90a7c1c
@ -4491,6 +4491,10 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
&GuiViewPrivate::compileAndDestroy,
|
||||
&Buffer::doExport,
|
||||
nullptr, cmd.allowAsync(), true);
|
||||
// If fresh start had been required, reset to false here
|
||||
// otherwise this would be done on each subsequent call
|
||||
if (doc_buffer)
|
||||
doc_buffer->requireFreshStart(false);
|
||||
break;
|
||||
}
|
||||
case LFUN_BUFFER_VIEW: {
|
||||
@ -4500,6 +4504,10 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
&GuiViewPrivate::previewAndDestroy,
|
||||
nullptr,
|
||||
&Buffer::preview, cmd.allowAsync());
|
||||
// If fresh start had been required, reset to false here
|
||||
// otherwise this would be done on each subsequent call
|
||||
if (doc_buffer)
|
||||
doc_buffer->requireFreshStart(false);
|
||||
break;
|
||||
}
|
||||
case LFUN_MASTER_BUFFER_UPDATE: {
|
||||
@ -4509,6 +4517,10 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
&GuiViewPrivate::compileAndDestroy,
|
||||
&Buffer::doExport,
|
||||
nullptr, cmd.allowAsync(), true);
|
||||
// If fresh start had been required, reset to false here
|
||||
// otherwise this would be done on each subsequent call
|
||||
if (doc_buffer && doc_buffer->masterBuffer())
|
||||
doc_buffer->masterBuffer()->requireFreshStart(false);
|
||||
break;
|
||||
}
|
||||
case LFUN_MASTER_BUFFER_VIEW: {
|
||||
@ -4517,6 +4529,10 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
docstring(),
|
||||
&GuiViewPrivate::previewAndDestroy,
|
||||
nullptr, &Buffer::preview, cmd.allowAsync());
|
||||
// If fresh start had been required, reset to false here
|
||||
// otherwise this would be done on each subsequent call
|
||||
if (doc_buffer && doc_buffer->masterBuffer())
|
||||
doc_buffer->masterBuffer()->requireFreshStart(false);
|
||||
break;
|
||||
}
|
||||
case LFUN_EXPORT_CANCEL: {
|
||||
|
@ -65,6 +65,8 @@ What's new
|
||||
- Update acknowledgments handling in aastex63 layout
|
||||
(cf. https://journals.aas.org/aastexguide/#acknowledgments)
|
||||
|
||||
- Make LFUN_RESET_EXPORT work properly.
|
||||
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user