Fix cursor not hiding when closing bag while both the bag and crafting window are displayed by delaying the want_grab calculation to after the crafting window is hidden

This commit is contained in:
Imbris 2023-02-03 00:26:49 -05:00
parent 2153196294
commit b9a6742ee6

View File

@ -899,12 +899,12 @@ impl Show {
if !self.esc_menu {
self.bag = open;
self.map = false;
self.want_grab = !self.any_window_requires_cursor();
self.crafting_fields.salvage = false;
if !open {
self.crafting = false;
}
self.want_grab = !self.any_window_requires_cursor();
}
}