chore(app tray): change favorite string

This commit is contained in:
Vukašin Vojinović 2024-05-26 00:00:10 +02:00 committed by Ashley Wulber
parent 406cab9a91
commit 8858326878
17 changed files with 47 additions and 41 deletions

View file

@ -1500,12 +1500,12 @@ impl cosmic::Application for CosmicAppList {
}
if is_favorite {
content = content.push(
menu_button(iced::widget::text(fl!("unfavorite")))
menu_button(iced::widget::text(fl!("unpin")))
.on_press(Message::UnFavorite(desktop_info.id.clone())),
)
} else if let Some(_) = desktop_info.exec.clone() {
content = content.push(
menu_button(iced::widget::text(fl!("favorite")))
menu_button(iced::widget::text(fl!("pin")))
.on_press(Message::Favorite(desktop_info.id.clone())),
)
}