ShowWidget: Change the mark_all notif wording.
This commit is contained in:
parent
483fd090f1
commit
3423d854e1
@ -279,7 +279,7 @@ Tobias Bernard
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="text" translatable="yes">Mark all epiodes as Watched</property>
|
||||
<property name="text" translatable="yes">Mark all episodes as listened</property>
|
||||
<property name="centered">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
|
||||
@ -162,17 +162,15 @@ impl App {
|
||||
Ok(Action::HeaderBarShowUpdateIndicator) => headerbar.show_update_notification(),
|
||||
Ok(Action::HeaderBarHideUpdateIndicator) => headerbar.hide_update_notification(),
|
||||
Ok(Action::MarkAllPlayerNotification(pd)) => {
|
||||
let sender = sender.clone();
|
||||
let callback = clone!(sender => move || {
|
||||
if let Err(err) = mark_all_watched(&pd, sender.clone()) {
|
||||
error!("Something went horribly wrong with the notif callback: {}", err);
|
||||
}
|
||||
glib::Continue(false)
|
||||
});
|
||||
let text = "All episodes where marked as watched.";
|
||||
|
||||
let sender = sender.clone();
|
||||
let notif = InAppNotification::new(text.into(), callback, sender);
|
||||
let text = "Marked all episodes as listened.";
|
||||
let notif = InAppNotification::new(text.into(), callback, sender.clone());
|
||||
overlay.add_overlay(¬if.overlay);
|
||||
// We need to display the notification after the widget is added to the overlay
|
||||
// so there will be a nice animation.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user