From 24f3071c58b562c5ff5cc57d7a0e97d881f43abe Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Mar 2018 10:35:34 +0100 Subject: drop redundant close button, since config is applied instantly, use pressed/released signals to close the config window --- src/frontend/gui/sisyphus-config.py | 4 ++-- src/frontend/gui/ui/sisyphus-config.ui | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/frontend/gui/sisyphus-config.py b/src/frontend/gui/sisyphus-config.py index 35afccc..67e6ae8 100755 --- a/src/frontend/gui/sisyphus-config.py +++ b/src/frontend/gui/sisyphus-config.py @@ -11,8 +11,8 @@ class SisyphusConfig(QtWidgets.QMainWindow): self.MIRRORLIST = getMirrors() self.updateMirrorList() self.show() - self.closeButton.clicked.connect(self.SisyphusConfigExit) - self.applyButton.clicked.connect(self.SisyphusConfigApply) + self.applyButton.pressed.connect(self.SisyphusConfigApply) + self.applyButton.released.connect(self.SisyphusConfigExit) self.mirrorCombo.activated.connect(self.setMirrorList) def centerOnScreen(self): diff --git a/src/frontend/gui/ui/sisyphus-config.ui b/src/frontend/gui/ui/sisyphus-config.ui index dd79c1c..7d74ae4 100644 --- a/src/frontend/gui/ui/sisyphus-config.ui +++ b/src/frontend/gui/ui/sisyphus-config.ui @@ -104,17 +104,6 @@ p, li { white-space: pre-wrap; } - - - - Close - - - - .. - - - -- cgit v1.2.3