屏蔽重命名功能

This commit is contained in:
yangling 2023-03-29 17:23:30 +08:00
parent 881086b12f
commit 9ba8fb73dd
2 changed files with 5 additions and 2 deletions

View File

@ -636,7 +636,8 @@ void IconView::slotRename()
|| getDirectoryUri().startsWith("recent://")
|| getDirectoryUri().startsWith("favorite://")
|| getDirectoryUri().startsWith("search://")
|| getDirectoryUri().startsWith("network://"))
|| getDirectoryUri().startsWith("network://")
|| getDirectoryUri().startsWith("label://"))
return;
//standardPaths not allow rename

View File

@ -759,7 +759,9 @@ void ListView::slotRename()
|| getDirectoryUri().startsWith("recent://")
|| getDirectoryUri().startsWith("favorite://")
|| getDirectoryUri().startsWith("search://")
|| getDirectoryUri().startsWith("network://"))
|| getDirectoryUri().startsWith("network://")
|| getDirectoryUri().startsWith("label://"))
return;
//standardPaths not allow rename