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

FileManager: Move the "create new file" action into DirectoryView

This makes it available in both desktop and windowed modes. :^)
This commit is contained in:
Andreas Kling 2020-08-17 20:10:19 +02:00
parent be48f58d41
commit 38d8426f32
3 changed files with 37 additions and 37 deletions

View file

@ -135,6 +135,7 @@ public:
Vector<String> selected_file_paths() const;
GUI::Action& mkdir_action() { return *m_mkdir_action; }
GUI::Action& touch_action() { return *m_touch_action; }
private:
explicit DirectoryView(Mode);
@ -169,4 +170,5 @@ private:
RefPtr<GUI::ColumnsView> m_columns_view;
RefPtr<GUI::Action> m_mkdir_action;
RefPtr<GUI::Action> m_touch_action;
};