gtkplacessidebar: remove unneeded condition

We check for it before anyway, and in this case make sense to show the
eject button in both cases.
parent 5a253c54
......@@ -451,10 +451,7 @@ add_place (GtkPlacesSidebar *sidebar,
if (show_unmount || show_eject)
g_assert (place_type != PLACES_BOOKMARK);
if (mount == NULL)
show_eject_button = FALSE;
show_eject_button = (show_unmount || show_eject);
show_eject_button = (show_unmount || show_eject);
tooltip_escaped = g_markup_escape_text (tooltip, -1);
row = g_object_new (GTK_TYPE_SIDEBAR_ROW,
Markdown is supported
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