e_shelf: only reset autohide timer if we are not hidden

otherwise we might hide shelfs even if the calendar is shown, without
the possibility of reshowing them again.
This commit is contained in:
Marcel Hollerbach 2020-07-21 11:20:47 +02:00
parent 0fcc23e06a
commit 324b2661ce
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ e_shelf_toggle(E_Shelf *es, int show)
E_OBJECT_TYPE_CHECK(es, E_SHELF_TYPE);
es->toggle = show;
if (_e_shelf_autohide_timer_extend(es)) return;
if (!es->hidden && _e_shelf_autohide_timer_extend(es)) return;
if (es->locked) return;
es->interrupted = -1;
es->urgent_show = 0;