[gnome-documents] application: Compare boolean values



commit da92a1e4e73c779ed3c9fc3311497056057c9e87
Author: Alessandro Bono <shadow openaliasbox org>
Date:   Fri Apr 10 20:28:23 2015 +0200

    application: Compare boolean values
    
    Fall out from bd6ce176d055e23b8f4aaf0ed42c5fb542640aa3
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747132

 src/application.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 9919177..cd42545 100644
--- a/src/application.js
+++ b/src/application.js
@@ -204,7 +204,7 @@ const Application = new Lang.Class({
         settings.connect('changed::night-mode', Lang.bind(this,
             function() {
                 let state = settings.get_value('night-mode');
-                if (state.get_boolean()[0] != action.state.get_boolean()[0])
+                if (state.get_boolean() != action.state.get_boolean())
                     action.state = state;
 
                 let gtkSettings = Gtk.Settings.get_default();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]