hide actions instead of disable

This commit is contained in:
2021-05-26 00:10:47 +03:00
parent b2a2abe6ae
commit a727714504

View File

@@ -405,8 +405,8 @@ void ProjectFilesystemWidget::on_tree_customContextMenuRequested(const QPoint &
item_target = item; item_target = item;
projectfs_menu_target = QFileInfo(item->data(0, roleFullPath).toString()); projectfs_menu_target = QFileInfo(item->data(0, roleFullPath).toString());
setExtVariable(); setExtVariable();
actionOpen_here->setEnabled(!projectfs_menu_target.isDir()); actionOpen_here->setVisible(!projectfs_menu_target.isDir());
actionOpen_external->setEnabled(!projectfs_menu_target.isDir()); actionOpen_external->setVisible(!projectfs_menu_target.isDir());
popup_menu.clear(); popup_menu.clear();
/*if (item->data(0, roleItemType).toInt() == itProject) { /*if (item->data(0, roleItemType).toInt() == itProject) {