SettingDialog: Save settings pn accepted event

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-05-16 19:46:43 +02:00
parent dbbbcb101c
commit 9a9710d2e7
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -42,10 +42,9 @@ class AutoZoomer(QtCore.QObject):
def showSettings(self, parent=None):
settings = SettingsDialog(self.config, self.data, self.remove, parent)
settings.accepted.connect(self.saveSettings)
settings.exec_()
self.saveSettings()
def loadSettings(self):
settings = QtCore.QSettings(self.config["settingsFile"], QtCore.QSettings.IniFormat)