Skip to content

Commit

Permalink
UI: Oops, use tag for focus too.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Jan 23, 2016
1 parent 60f0082 commit 705ab49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/native/ui/view.cpp
Expand Up @@ -166,7 +166,12 @@ std::string View::Describe() const {

void View::PersistData(PersistStatus status, std::string anonId, PersistMap &storage) {
// Remember if this view was a focused view.
const std::string focusedKey = "ViewFocused::" + anonId;
std::string tag = Tag();
if (tag.empty()) {
tag = anonId;
}

const std::string focusedKey = "ViewFocused::" + tag;
switch (status) {
case UI::PERSIST_SAVE:
if (HasFocus()) {
Expand Down

0 comments on commit 705ab49

Please sign in to comment.