SettingDialog: Save settings pn accepted event
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
dbbbcb101c
commit
9a9710d2e7
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user