jesseduffield.lazygit/pkg
Stefan Haller 4dfa4e8aa2 Allow more than one controller to attach OnFocus/OnFocusLost functions
Trying to do this would previously have the second one silently overwrite the
first one's.

We don't currently have this in lazygit, but I ran into the situation once
during development, and it can lead to bugs that are hard to diagnose.

Instead of holding a list of functions, we could also have added a panic in case
the function was set already; this would have been good enough for the current
state, and enough to catch mistakes early in the future. However, I decided to
allow multiple controllers to attach these functions, because I can't see a
reason not to.
2025-07-11 10:51:44 +02:00
..
app Bump minimum required git version to 2.32 2025-07-09 12:18:57 +02:00
cheatsheet fix: broken markdown by replace \n into <md> 2025-07-06 10:11:49 +02:00
commands Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Add enum validation for Git.Log.Order and Git.Log.ShowGraph 2025-07-09 13:15:03 +02:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Allow more than one controller to attach OnFocus/OnFocusLost functions 2025-07-11 10:51:44 +02:00
i18n Add a prompt for the sort order menus for branches 2025-07-09 13:16:42 +02:00
integration Fix more unstable tests 2025-07-10 08:59:01 +02:00
jsonschema Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
tasks Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00
theme Highlight inactive selection in bold 2024-06-23 14:43:13 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00