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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user