[wesnoth-commits] [wesnoth/wesnoth] c46a21: Improve the Load dialog's UX when there are no sav...
Steve Cotton
noreply at github.com
Wed Feb 24 20:19:04 UTC 2021
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: c46a2171f22f17bbf10d2c0412787930c70645d6
https://github.com/wesnoth/wesnoth/commit/c46a2171f22f17bbf10d2c0412787930c70645d6
Author: Steve Cotton <steve at octalot.co.uk>
Date: 2021-02-24 (Wed, 24 Feb 2021)
Changed paths:
M changelog.md
M src/gui/dialogs/game_load.cpp
M src/gui/dialogs/game_load.hpp
Log Message:
-----------
Improve the Load dialog's UX when there are no save files or corrupted files
Re-add the popup that appears when "Load" is pressed on the title screen if
there are no files, but now check for files from previous versions too.
Improve handling of switching from a version with files to a version without
files, disabling buttons on the load dialog when there are no files in the
current directory. Versions with no files will still be shown in the drop-down.
This adds a todo about the error path at the start of evaluate_summary_string,
this path is reached by creating empty files in the save dir. The dialog's state
is reasonable, so it seemed a low priority and I don't want to introduce new
bugs by refactoring this path now.
Deleting all files now doesn't automatically close the dialog.
More information about the Commits
mailing list