UI: Oops, use tag for focus too.

This commit is contained in:
Unknown W. Brackets 2016-01-23 09:20:53 -08:00
parent 60f00820f8
commit 705ab497f2

View File

@ -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()) {