save file selector state

This commit is contained in:
Damien Elmes 2018-07-23 13:57:17 +10:00
parent fbeade1f23
commit 13b529e77a

View File

@ -272,7 +272,11 @@ def getFile(parent, title, cb, filter="*.*", dir=None, key=None):
cb(file)
ret.append(file)
d.accepted.connect(accept)
if key:
restoreState(d, key)
d.exec_()
if key:
saveState(d, key)
return ret and ret[0]
def getSaveFile(parent, title, dir_description, key, ext, fname=None):