save file selector state
This commit is contained in:
parent
fbeade1f23
commit
13b529e77a
@ -272,7 +272,11 @@ def getFile(parent, title, cb, filter="*.*", dir=None, key=None):
|
|||||||
cb(file)
|
cb(file)
|
||||||
ret.append(file)
|
ret.append(file)
|
||||||
d.accepted.connect(accept)
|
d.accepted.connect(accept)
|
||||||
|
if key:
|
||||||
|
restoreState(d, key)
|
||||||
d.exec_()
|
d.exec_()
|
||||||
|
if key:
|
||||||
|
saveState(d, key)
|
||||||
return ret and ret[0]
|
return ret and ret[0]
|
||||||
|
|
||||||
def getSaveFile(parent, title, dir_description, key, ext, fname=None):
|
def getSaveFile(parent, title, dir_description, key, ext, fname=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user