[mousetrap/gnome3-wip: 225/240] Initialize Loop using passed config and not app.config.



commit 6ada2682057a57616dd4124b160a1468f01202c1
Author: Stoney Jackson <dr stoney gmail com>
Date:   Mon Jun 30 14:35:52 2014 -0400

    Initialize Loop using passed config and not app.config.

 src/mousetrap/core.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mousetrap/core.py b/src/mousetrap/core.py
index 673e021..3ab9bcb 100644
--- a/src/mousetrap/core.py
+++ b/src/mousetrap/core.py
@@ -75,7 +75,8 @@ class Loop(Observable):
 
     def __init__(self, config, app):
         super(Loop, self).__init__(config)
-        self._set_loops_per_second(app.config['loops_per_second'])
+        self._config = config
+        self._set_loops_per_second(config['loops_per_second'])
         self._timeout_id = None
         self._add_argument('app', app)
 


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