diff options
author | bob <bcz@cs.brown.edu> | 2020-02-05 11:26:24 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-02-05 11:26:24 -0500 |
commit | a0ca191b6263e3ccff8740ddf6cf9cba68b9f2f9 (patch) | |
tree | 36200a3ab993858e1b46538ffa656167e6a7797d /src/new_fields/Doc.ts | |
parent | 23190ee16a7f54474060ea87767f5336242d03d7 (diff) |
fixed iconify things. fixed presentation title bar.
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 9b4844b19..862557302 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -784,8 +784,10 @@ export namespace Doc { export function setNativeView(doc: any) { const prevLayout = StrCast(doc.layoutKey).split("_")[1]; + const deiconify = prevLayout === "icon" && StrCast(doc.deiconifyLayout) ? "layout_" + StrCast(doc.deiconifyLayout) : ""; + doc.deiconifyLayout = undefined; if (StrCast(doc.title).endsWith("_" + prevLayout)) doc.title = StrCast(doc.title).replace("_" + prevLayout, ""); - doc.layoutKey = "layout"; + doc.layoutKey = deiconify || "layout"; } } |