[gedit-latex] Correctly hide/show the toolbar
- From: Pietro Battiston <pbattiston src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Correctly hide/show the toolbar
- Date: Sun, 1 May 2016 09:11:18 +0000 (UTC)
commit cade5281d74572a28a39e6a455e44dda1e91e75e
Author: Pietro Battiston <pbattiston src gnome org>
Date: Sun May 1 11:01:13 2016 +0200
Correctly hide/show the toolbar
latex/windowactivatable.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/latex/windowactivatable.py b/latex/windowactivatable.py
index f7da1ae..dd12e4a 100644
--- a/latex/windowactivatable.py
+++ b/latex/windowactivatable.py
@@ -425,10 +425,10 @@ class LaTeXWindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Co
# "Duplicate child name in GtkStack: LaTeX Tools"
menu_action.set_enabled(bool(to_enable))
- if extension:
- self.show_toolbar()
- else:
- self.hide_toolbar()
+ if to_enable:
+ self.show_toolbar()
+ else:
+ self.hide_toolbar()
#
# adjust editor views
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]