mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 00:23:18 +00:00

Instead of showing the difficulty dialog in post_show and setting the retval to twindow::NONE if the dialog was canceled, we add a custom exit hook that fires when double clicking the games list or pressing the Create Game button that shows the dialog instead, and returns if canceled. This is much cleaner.