InAppNotif: Refactor to infer the undo state

If we use an Optional instead of passing empty closures, we
can infer if the Undo button needs to be shown.
This commit is contained in:
Jordan Petridis
2018-08-13 08:31:52 +03:00
parent 866fa6a758
commit 01efbf5c79
4 changed files with 22 additions and 18 deletions
@@ -100,7 +100,6 @@ Tobias Bernard
<child>
<object class="GtkButton" id="undo">
<property name="label" translatable="yes">Undo</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">center</property>