From 7ea46b5470d3212d2b1bad639497597fb1e771f1 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 19 Jun 2009 15:03:40 +0200 Subject: move plugins enable/disable code from winMain to plugins --- nephilim/nephilim_app.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nephilim/nephilim_app.py') 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_() -- cgit v1.2.3