summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-03-25 10:35:34 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-03-25 10:35:34 +0100
commit24f3071c58b562c5ff5cc57d7a0e97d881f43abe (patch)
tree256f48fda8c410f20a28fb10c050c3f473d0a371
parentd573bc65aac877cc510d8c43f5f98b54f3f3977a (diff)
drop redundant close button, since config is applied instantly, use pressed/released signals to close the config window
-rwxr-xr-xsrc/frontend/gui/sisyphus-config.py4
-rw-r--r--src/frontend/gui/ui/sisyphus-config.ui11
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
@@ -105,17 +105,6 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item>
- <widget class="QPushButton" name="closeButton">
- <property name="text">
- <string>Close</string>
- </property>
- <property name="icon">
- <iconset theme="dialog-close">
- <normaloff>.</normaloff>.</iconset>
- </property>
- </widget>
- </item>
- <item>
<widget class="QPushButton" name="applyButton">
<property name="text">
<string>Apply</string>