UI: Fix some logic dependent on screen tags.

9f38516 changed various tags but not code referencing them.
This commit is contained in:
Unknown W. Brackets committed 2022-09-17 13:36:25 -07:00
1 parent bf59640aa5
commit 6576b853e4
6 files changed
+10 -10

No files matched your search

+3 -2
View File
@@ -1432,11 +1432,12 @@ UI::EventReturn MainScreen::OnExit(UI::EventParams &e) {
}
void MainScreen::dialogFinished(const Screen *dialog, DialogResult result) {
if (dialog->tag() == "store") {
std::string tag = dialog->tag();
if (tag == "Store") {
backFromStore_ = true;
RecreateViews();
}
if (dialog->tag() == "game") {
if (tag == "Game") {
if (!restoreFocusGamePath_.empty() && UI::IsFocusMovementEnabled()) {
// Prevent the background from fading, since we just were displaying it.
highlightedGamePath_ = restoreFocusGamePath_;