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:
parent
1f8f739ea2
commit
442256b5f8
2 changed files with 29 additions and 17 deletions
|
@ -15,6 +15,8 @@ public:
|
|||
void open_sesame(const String& path);
|
||||
|
||||
private:
|
||||
void set_path(const StringView&);
|
||||
|
||||
GTextEditor* m_editor { nullptr };
|
||||
String m_path;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue