Pārlūkot izejas kodu

FileManager: Remove the rename action from the tree view context menu

The action never worked properly here.  It used the selection
from the directory view, instead of the tree view.
Furthermore, the tree view isn't even editable.

Just making tree view editable wouldn't fix it -- it'd probably
need something like creating an on_stop_editing() function
in the AbstractView to change the path after the rename.

For now, I'll remove the action from the menu as a "temporary fix".
Karol Kosek 4 gadi atpakaļ
vecāks
revīzija
755fe2b0ca
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. 0 1
      Userland/Applications/FileManager/main.cpp

+ 0 - 1
Userland/Applications/FileManager/main.cpp

@@ -1057,7 +1057,6 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
     tree_view_directory_context_menu->add_action(copy_action);
     tree_view_directory_context_menu->add_action(paste_action);
     tree_view_directory_context_menu->add_action(tree_view_delete_action);
-    tree_view_directory_context_menu->add_action(directory_view.rename_action());
     tree_view_directory_context_menu->add_separator();
     tree_view_directory_context_menu->add_action(properties_action);
     tree_view_directory_context_menu->add_separator();