mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
parent
c0a1893008
commit
c285b4f8c3
@ -1942,15 +1942,19 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
||||
break;
|
||||
|
||||
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()
|
||||
|| d.processing_thread_watcher_.isRunning()) {
|
||||
// grey out, don't hide
|
||||
enable = false;
|
||||
break;
|
||||
}
|
||||
// hide if we have no checktex command
|
||||
enable = !lyxrc.chktex_command.empty();
|
||||
flag.setUnknown(!enable);
|
||||
enable = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user