implement file browser icon switch

This commit is contained in:
yggverse 2025-02-13 08:09:39 +02:00
parent e145e919a3
commit 2b4c9ca640
2 changed files with 12 additions and 1 deletions

View file

@ -219,7 +219,7 @@ impl Request for Entry {
self.first_child().unwrap().remove_css_class("success"); // @TODO handle
match primary_icon::from(&self.text()) {
PrimaryIcon::Download { name, tooltip } => {
PrimaryIcon::Download { name, tooltip } | PrimaryIcon::File { name, tooltip } => {
self.set_primary_icon_activatable(false);
self.set_primary_icon_sensitive(false);
self.set_primary_icon_name(Some(name));