HackStudio: Preserve the untitled filename text on file modification

Previously, the title of an unnamed file would just disappear from
the editor label if you started typing.
This commit is contained in:
Karol Kosek 2021-09-06 21:07:41 +02:00 committed by Andreas Kling
commit eb5320023a
Notes: sideshowbarker 2024-07-19 17:14:44 +09:00
2 changed files with 7 additions and 2 deletions

View file

@ -55,6 +55,8 @@ public:
Function<void()> on_change;
private:
static constexpr auto untitled_label = "(Untitled)";
EditorWrapper();
void update_title();