diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-05 11:57:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-05 11:57:47 +0200 |
commit | 52de9b175376f11676e2ea2d32207332f5923069 (patch) | |
tree | 40a496b37ba6827fd5e12c77626f7e608fbc67c5 /Userland/Applications/FileManager | |
parent | cbc582e0dfbbd8345342971b56362f366c65579c (diff) | |
download | serenity-52de9b175376f11676e2ea2d32207332f5923069.zip |
LibGUI: Do AbstractView::set_column_hidden() => set_column_visible()
This API felt backwards, so let's change it.
Diffstat (limited to 'Userland/Applications/FileManager')
-rw-r--r-- | Userland/Applications/FileManager/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index 83e0648c1b..b1c3909d87 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -427,14 +427,14 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio auto directories_model = GUI::FileSystemModel::create({}, GUI::FileSystemModel::Mode::DirectoriesOnly); tree_view.set_model(directories_model); - tree_view.set_column_hidden(GUI::FileSystemModel::Column::Icon, true); - tree_view.set_column_hidden(GUI::FileSystemModel::Column::Size, true); - tree_view.set_column_hidden(GUI::FileSystemModel::Column::Owner, true); - tree_view.set_column_hidden(GUI::FileSystemModel::Column::Group, true); - tree_view.set_column_hidden(GUI::FileSystemModel::Column::Permissions, true); - tree_view.set_column_hidden(GUI::FileSystemModel::Column::ModificationTime, true); - tree_view.set_column_hidden(GUI::FileSystemModel::Column::Inode, true); - tree_view.set_column_hidden(GUI::FileSystemModel::Column::SymlinkTarget, true); + tree_view.set_column_visible(GUI::FileSystemModel::Column::Icon, false); + tree_view.set_column_visible(GUI::FileSystemModel::Column::Size, false); + tree_view.set_column_visible(GUI::FileSystemModel::Column::Owner, false); + tree_view.set_column_visible(GUI::FileSystemModel::Column::Group, false); + tree_view.set_column_visible(GUI::FileSystemModel::Column::Permissions, false); + tree_view.set_column_visible(GUI::FileSystemModel::Column::ModificationTime, false); + tree_view.set_column_visible(GUI::FileSystemModel::Column::Inode, false); + tree_view.set_column_visible(GUI::FileSystemModel::Column::SymlinkTarget, false); bool is_reacting_to_tree_view_selection_change = false; auto& directory_view = splitter.add<DirectoryView>(DirectoryView::Mode::Normal); |