PR #3125 (commit 22aac443) broke that accidentally by moving the "switch to last used tab" to a idle callback (g_idle_add()). This runs after opening files from the command line.
Now, the same callback is moved to libmain.c and is only registered when there are no files from the command line.
Additionally, projects gains a private copy of the current_page loaded from the keyfile.
Fixes #3210 You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3267
-- Commit Summary --
* Restore startup behavior to focus files from the command line after session files
-- File Changes --
M src/keyfile.c (40) M src/keyfile.h (4) M src/libmain.c (52) M src/project.c (1) M src/projectprivate.h (1)
-- Patch Links --
https://github.com/geany/geany/pull/3267.patch https://github.com/geany/geany/pull/3267.diff