UI: Improve documentation on pop up use.

This commit is contained in:
Unknown W. Brackets committed 2017-04-02 10:56:41 -07:00
1 parent e59ebf8ad9
commit 6541413021
1 file changed
+2
+2
View File
@@ -443,6 +443,8 @@ void SetBackgroundPopupScreen::update() {
UI::EventReturn GameScreen::OnSetBackground(UI::EventParams &e) {
I18NCategory *ga = GetI18NCategory("Game");
// This popup is used to prevent any race condition:
// g_gameInfoCache may take time to load the data, and a crash could happen if they exit before then.
SetBackgroundPopupScreen *pop = new SetBackgroundPopupScreen(ga->T("Setting Background"), gamePath_);
if (e.v)
pop->SetPopupOrigin(e.v);