gtkplacessidebar: remove unneeded condition
We check for it before anyway, and in this case make sense to show the eject button in both cases.
This commit is contained in:
parent
5a253c546a
commit
40c0a6aa87
@ -451,9 +451,6 @@ add_place (GtkPlacesSidebar *sidebar,
|
|||||||
if (show_unmount || show_eject)
|
if (show_unmount || show_eject)
|
||||||
g_assert (place_type != PLACES_BOOKMARK);
|
g_assert (place_type != PLACES_BOOKMARK);
|
||||||
|
|
||||||
if (mount == NULL)
|
|
||||||
show_eject_button = FALSE;
|
|
||||||
else
|
|
||||||
show_eject_button = (show_unmount || show_eject);
|
show_eject_button = (show_unmount || show_eject);
|
||||||
|
|
||||||
tooltip_escaped = g_markup_escape_text (tooltip, -1);
|
tooltip_escaped = g_markup_escape_text (tooltip, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user