texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

Root document shown incorrectly after restart

Open projekter opened this issue 4 years ago • 1 comments

I configure TeXstudio to restore my session after restarting. Now, suppose I selected some explicit root document (so, not automatic detection). Then, I restart TeXstudio. This root document is still selected (as expected): when I recompile, whichever tab is open, the root document is the one to be recompiled and the one that is shown in the preview. Also in the Options menu, TeXstudio correctly shows the selected root document. However, the toolbar button main/options/rootdoc (which is of course the place where I would look at, not in the Options menu), the root document is shown as being automatically detected. Only after changing it once does the toolbar button show the correct root. When I expand the dropdown menu, it says in the second item "Shows current explicit root" instead of the name of the actual root.

Environment

  • TeXstudio: 4.0.3
  • Qt: 6.2.0
  • OS: Windows 10
  • TeX distribution: miktex

projekter avatar Jan 24 '22 12:01 projekter

hmmm, the custom toolbar was not intended to handle dynamic menu entries. I am not really inclined to fix this.

sunderme avatar Jan 24 '22 18:01 sunderme