diff options
author | Christian Dywan <christian@twotoasts.de> | 2019-03-06 20:53:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 20:53:35 +0100 |
commit | e515d2ca80c54f1d0075c64e8a045a5caf8b36ef (patch) | |
tree | 289604e60af2c7825bdec8130ab36418ef1d440b | |
parent | cebfef08c3be5a041890245ee0af11f1f3d41a77 (diff) | |
download | midori-git-e515d2ca80c54f1d0075c64e8a045a5caf8b36ef.tar.gz |
Don't show overlay statusbar if it wasn't visible (#289)
This fixes an empty "stub" being visible.
-rw-r--r-- | core/browser.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/browser.vala b/core/browser.vala index f0c4e254..31651e87 100644 --- a/core/browser.vala +++ b/core/browser.vala @@ -90,10 +90,11 @@ namespace Midori { navigationbar.urlbar.grab_focus (); } if (!statusbar.has_children) { + bool was_visible = statusbar.visible; statusbar.hide (); // Flip overlay to evade the mouse pointer statusbar.halign = statusbar.halign == Gtk.Align.START ? Gtk.Align.END : Gtk.Align.START; - statusbar.show (); + statusbar.visible = was_visible; } return false; }); |