mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-23 06:14:13 -04:00
Support save prompt on back arrow (#1270)
* Support save prompt on back arrow * Add lifetime warning comment
This commit is contained in:
parent
e1a79a0ff1
commit
4985d836ea
2 changed files with 51 additions and 34 deletions
|
@ -229,10 +229,7 @@ class TextEditorView : public View {
|
|||
void show_save_prompt(std::function<void()> continuation);
|
||||
|
||||
void prepare_for_write();
|
||||
void create_temp_file() const;
|
||||
void delete_temp_file() const;
|
||||
void save_temp_file();
|
||||
std::filesystem::path get_temp_path() const;
|
||||
|
||||
NavigationView& nav_;
|
||||
std::unique_ptr<FileWrapper> file_{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue