diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-30 15:59:36 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-30 15:59:36 +0200 |
commit | 664f9275ce16e760a42185fbb710235ebed4a806 (patch) | |
tree | 5bace98c7c0b2189862ad0687106529da6343183 | |
parent | little GUI and API fixes (diff) | |
download | pyload-664f9275ce16e760a42185fbb710235ebed4a806.tar.xz |
show warning only one time
-rw-r--r-- | module/gui/ConnectionManager.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/module/gui/ConnectionManager.py b/module/gui/ConnectionManager.py index 930cbd889..def575abc 100644 --- a/module/gui/ConnectionManager.py +++ b/module/gui/ConnectionManager.py @@ -24,11 +24,17 @@ from os.path import join from uuid import uuid4 as uuid class ConnectionManager(QWidget): + + + warningShown = False + def __init__(self): QWidget.__init__(self) - QMessageBox.warning(self, 'Warning', - "We are sorry but the GUI is not stable yet. Please use the webinterface for much better experience. \n", QMessageBox.Ok) + if not self.warningShown: + QMessageBox.warning(self, 'Warning', + "We are sorry but the GUI is not stable yet. Please use the webinterface for much better experience. \n", QMessageBox.Ok) + ConnectionManager.warningShown = True mainLayout = QHBoxLayout() buttonLayout = QVBoxLayout() |