UI: Avoid pushing a screen on top of itself.

In case someone doesn't realize they're on settings, or etc.
This commit is contained in:
Unknown W. Brackets 2017-12-02 11:45:59 -08:00
parent f1bd54148b
commit 5c81c67410
5 changed files with 8 additions and 4 deletions

View file

@ -33,6 +33,8 @@ class ControlMappingScreen : public UIDialogScreenWithBackground {
public:
ControlMappingScreen() {}
void KeyMapped(int pspkey); // Notification to let us refocus the same one after recreating views.
std::string tag() const override { return "control mapping"; }
protected:
virtual void CreateViews() override;
private: