[gnome-books/wip/hadess/sensitive-menu: 2/5] overview: Keep the main menu sensitive when no books
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-books/wip/hadess/sensitive-menu: 2/5] overview: Keep the main menu sensitive when no books
- Date: Fri, 2 Aug 2019 15:38:18 +0000 (UTC)
commit 2c5ffc7338b8dad8933164ca41bc1f7346e9965f
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 2 17:17:34 2019 +0200
overview: Keep the main menu sensitive when no books
When there are no books, keep the main menu sensitive nonetheless, as
the old app menu used to be, so that the about box can be accessed.
Closes: #30
src/overview.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/overview.js b/src/overview.js
index e8f699bd..6d538634 100644
--- a/src/overview.js
+++ b/src/overview.js
@@ -708,7 +708,8 @@ const OverviewToolbar = new Lang.Class({
function(controller, count) {
this.toolbar.foreach(Lang.bind(this,
function(child) {
- child.set_sensitive(count != 0);
+ if (child.name != 'menu-button')
+ child.set_sensitive(count != 0);
}));
}));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]