Commit ca3267aa authored by Florian Müllner's avatar Florian Müllner
Browse files

entry-row: Hide apply button when disabled

When setting the :show-apply-button property to FALSE, it seems
reasonable to expect that the button will not be shown, regardless
of whether it was visible before or not.

This is done by resetting the text_changed state. As that is only
tracked if the property is set, resetting it makes sure that
toggling the property behaves consistently.
parent c2eef915
Pipeline #415020 passed with stages
in 4 minutes and 41 seconds
......@@ -687,6 +687,11 @@ adw_entry_row_set_show_apply_button (AdwEntryRow *self,
priv->show_apply_button = show_apply_button;
if (!priv->show_apply_button && priv->text_changed) {
priv->text_changed = FALSE;
update_empty (self);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_SHOW_APPLY_BUTTON]);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment