FileManager: Hide the Inode and Symlink Target columns in TableView

These are not generally interesting, so let's hide them by default.
The user can re-enable them if they want.
This commit is contained in:
Andreas Kling 2021-08-31 01:13:30 +02:00
parent 887ab3cc9a
commit 6cb536daa8
Notes: sideshowbarker 2024-07-18 05:03:02 +09:00

View File

@ -290,6 +290,9 @@ void DirectoryView::setup_table_view()
m_table_view->set_model(m_sorting_model);
m_table_view->set_key_column_and_sort_order(GUI::FileSystemModel::Column::Name, GUI::SortOrder::Ascending);
m_table_view->set_column_visible(GUI::FileSystemModel::Column::Inode, false);
m_table_view->set_column_visible(GUI::FileSystemModel::Column::SymlinkTarget, false);
m_table_view->on_activation = [&](auto& index) {
handle_activation(index);
};