mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
amend 71fea63326
This commit is contained in:
parent
71fea63326
commit
be4d49ebd1
@ -1932,15 +1932,19 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_BUFFER_CHKTEX: {
|
case LFUN_BUFFER_CHKTEX: {
|
||||||
|
// hide if we have no checktex command
|
||||||
|
if (lyxrc.chktex_command.empty()) {
|
||||||
|
flag.setUnknown(true);
|
||||||
|
enable = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (!doc_buffer || !doc_buffer->params().isLatex()
|
if (!doc_buffer || !doc_buffer->params().isLatex()
|
||||||
|| d.processing_thread_watcher_.isRunning()) {
|
|| d.processing_thread_watcher_.isRunning()) {
|
||||||
// grey out, don't hide
|
// grey out, don't hide
|
||||||
enable = false;
|
enable = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// hide if we have no checktex command
|
enable = true;
|
||||||
enable = !lyxrc.chktex_command.empty();
|
|
||||||
flag.setUnknown(!enable);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user