summaryrefslogtreecommitdiff
path: root/nephilim/nephilim_app.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-06-19 15:03:40 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-06-19 15:03:40 +0200
commit7ea46b5470d3212d2b1bad639497597fb1e771f1 (patch)
tree8ff5600395ef41cc2bb5fbafaaf4a69bb04aed6c /nephilim/nephilim_app.py
parente3ca7a94b05f9236164d527d485594f184423667 (diff)
move plugins enable/disable code from winMain to plugins
Diffstat (limited to 'nephilim/nephilim_app.py')
-rw-r--r--nephilim/nephilim_app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nephilim/nephilim_app.py b/nephilim/nephilim_app.py
index ee3f88c..269cc9e 100644
--- a/nephilim/nephilim_app.py
+++ b/nephilim/nephilim_app.py
@@ -24,6 +24,7 @@ from settings_wg import SettingsWidget
import plugins
class NephilimApp(QtGui.QApplication):
+ # public, constant
"main window object"
main_win = None
"MPD layer"
@@ -32,6 +33,8 @@ class NephilimApp(QtGui.QApplication):
plugins = None
"settings object"
settings = None
+
+ # private
"settings window"
__settings_win = None
@@ -63,6 +66,8 @@ class NephilimApp(QtGui.QApplication):
self.connect(self, QtCore.SIGNAL('aboutToQuit()'), self.__cleanup)
+ if show_settings:
+ self.show_settings_win()
self.main_win.restore_layout()
QtGui.QApplication.exec_()