remember TeXdoc availability#3270
Conversation
src/texdocdialog.cpp
Outdated
| if (status == Undefined) | ||
| help->texdocAvailableRequest(lastDocRequest); | ||
| else { | ||
| QString message = repo->LatexRepository::docMessage(lastDocRequest); |
There was a problem hiding this comment.
is there actually a case where this message gets set to something ? Looks like circular ?
There was a problem hiding this comment.
When a row is selected the first time (state is Undefined), state and message are retrieved and stored in the latexPackageInfo (s. line 201f in TexdocDialog::regenerateTable and changes in TexdocDialog::updateDocAvailableInfo).
If the message would not be set, then you would not see any message in case you select again the row with a package that has no TeXdoc available.
|
removed tooltips from PR |
|
I can't find code where |
|
Clicking on a table row emits signal When a row is clicked for that the texdoc info has been stored previously in the package info, these information can be retrieved imediately and the warning icon and message fields are set accordingly (texdocdialog.cpp, l. 202f). |
|
okay, so there are only two messages ( |
|
someone decided to have the option for a custom message. I didn't want to change this. But in principle it would suffice to store the available value and hard code the negative message. One hast just to see what should happen to the special case. Discuss about effort is useless, because code is finalized. |
|
okay, I would prefer to have only the status stored. |
|
the line |
|
@sunderme but this means that the user doesn't receive a note when texdoc cmd is not set up. |
|
Thanks |
No description provided.