1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

TextEditor: Add "Save as..." action.

Add a basic "save as" action to the TextEditor app, and make "save" fall
back to using "save as" if there's no name already set.

Fixes #282.
This commit is contained in:
Andreas Kling 2019-07-24 06:32:30 +02:00
parent 1f8f739ea2
commit 442256b5f8
2 changed files with 29 additions and 17 deletions

View file

@ -15,6 +15,8 @@ public:
void open_sesame(const String& path);
private:
void set_path(const StringView&);
GTextEditor* m_editor { nullptr };
String m_path;
};
};