1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-22 05:29:44 +02:00
lazygit/pkg/gui/controllers
Jesse Duffield a82134f41c Fix race condition
Our refresh code may try to push a context. It does this in two places:
1) when all merge conflicts are resolved, we push a 'continue merge?' confirmation context
2) when all conflicts of a given file are resolved and we're in the merge conflicts context,
   we push the files context.

Sometimes we push the confirmation context and then push the files context over it, so the user
never sees the confirmation context.

This commit fixes the race condition by adding a check to ensure that we're still in the
merge conflicts panel before we try escaping from it
2023-05-16 21:01:38 +10:00
..
2023-05-16 21:01:38 +10:00
2023-04-30 13:19:52 +10:00
2023-04-30 13:19:52 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2022-04-02 17:04:42 +11:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00