mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-29 01:34:37 +01:00
Save as kept the document's name unless it was Untitled or the old file's own name (#935). A file opened from an import (.fig, .penpot, .sketch) carries its source's name and has no file yet, so after Save as to Other.figcraft its tab still showed the source's name; a file renamed here did the same. The tab and the file on disk then disagree, and the file can't be found by the name on its tab. Saving to another file now always names the document after it, as a desktop app's document window does. Saving to the same file keeps a name given here, so a name a file name can't hold (with a colon, say) stays until the next Save as. Keeping a name chosen here across Save as (the #935 rule) was the alternative; it is what left imported files with names no file has.