After Geany launch a filename not corresponding to the current file is shown in the title bar - see the screenshot below. It gets fixed as active document changes. I'm wondering if something similar to https://github.com/geany/geany/issues/3609 should be also done for the titlebar.
<img width="936" alt="Screenshot 2023-11-13 at 10 58 18" src="https://github.com/geany/geany/assets/713965/afe2f746-f13e-4162-8aaa-dd6840da0b02">
Note that his happens when the first tab is selected after opening a session - apparently "document-open" signal isn't invoked in this case. This is a problem for the LSP plugin too: https://github.com/techee/geany-lsp/issues/30.
apparently "document-open" signal isn't invoked in this case
Sorry, I meant "document-activate".
There's one more problem, the MRU file list isn't updated either when the first tab is selected after Geany start so when you switch to another tab and want to go back, the first tab's document isn't in the MRU list.
I've bisected this to https://github.com/geany/geany/pull/3267. The original code contained the `switch_to_session_page()` function which emitted the `switch-page` signal even in the case when the right tab was already selected (so no real switch happened) which then lead to correct "document-activate" emission from `on_notebook1_switch_page_after()`.
Another victim of this problem is the git-changebar plugin (and possibly others) that expects that "document-activate" is delivered also when a single tab is open. The result is that when no document is open and you open some document with changes against the committed state, git-changebar doesn't show the changes.
Closed #3684 as completed via 293157c7a99880523900e29a1e3191800c2018fe.
github-comments@lists.geany.org