show a message when nothing exists to migrate (#9025)

This commit is contained in:
Pentarctagon 2024-07-02 18:14:06 -05:00 committed by GitHub
parent f1b90e91a9
commit 6812eac403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,6 +21,7 @@
#include "game_version.hpp"
#include "gettext.hpp"
#include "gui/auxiliary/find_widget.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/widgets/listbox.hpp"
#include "gui/widgets/window.hpp"
#include "preferences/preferences.hpp"
@ -43,6 +44,8 @@ void migrate_version_selection::execute()
migrate_version_selection mig = migrate_version_selection();
if(mig.versions_.size() > 0) {
mig.show();
} else {
gui2::show_message(_("No Other Version Found"), _("This would import settings from a previous version of Wesnoth, but no other version was found on this device"), gui2::dialogs::message::button_style::auto_close);
}
}