mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibGUI: Convert various little things to GModelSelection
All the little things that were using the per-model seletion are now moving over to GModelSelection.
This commit is contained in:
@@ -194,11 +194,8 @@ GVariant GFileSystemModel::data(const GModelIndex& index, Role role) const
|
||||
if (role == GModel::Role::Display)
|
||||
return node.name;
|
||||
if (role == GModel::Role::Icon) {
|
||||
if (node.type == Node::Directory) {
|
||||
if (selected_index() == index)
|
||||
return m_open_folder_icon;
|
||||
if (node.type == Node::Directory)
|
||||
return m_closed_folder_icon;
|
||||
}
|
||||
return m_file_icon;
|
||||
}
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user