1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

FileManager: Add Rename action to context and application menu

Prior to this change, the only way to rename a file was to press F2
on keyboard.
This commit is contained in:
Karol Kosek 2021-07-13 00:24:48 +02:00 committed by Andreas Kling
parent 886e011608
commit d34ef6d997
3 changed files with 16 additions and 3 deletions

View file

@ -123,6 +123,7 @@ public:
GUI::Action& open_terminal_action() { return *m_open_terminal_action; }
GUI::Action& delete_action() { return *m_delete_action; }
GUI::Action& force_delete_action() { return *m_force_delete_action; }
GUI::Action& rename_action() { return *m_rename_action; }
private:
explicit DirectoryView(Mode);
@ -168,6 +169,7 @@ private:
RefPtr<GUI::Action> m_open_terminal_action;
RefPtr<GUI::Action> m_delete_action;
RefPtr<GUI::Action> m_force_delete_action;
RefPtr<GUI::Action> m_rename_action;
};
}