Commit 5887830f authored by talljosh's avatar talljosh

During a game, update the keyboard map every time the settings screen is closed.

parent 34090506705a
......@@ -179,7 +179,13 @@ class DetailsInterface(framework.CompoundElement):
self.settings_screen.raise_to_top()
return
self.settings_screen = SettingsScreen(self.grab_hotkey)
self.settings_screen_task = create_safe_task(self.settings_screen.run())
self.settings_screen_task = create_safe_task(self._show_settings_then_update_key_map())
async def _show_settings_then_update_key_map(self):
try:
await self.settings_screen.run()
finally:
self.gameInterface.updateKeyMapping()
async def grab_hotkey(self, parent_window, prompt, title=None):
with hidden_qt_toplevels():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment