mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-16 12:36:38 +00:00
Update canvas filename on save as.
libroar/RoarCanvasCommandsFile.py:{_importFile,canvasSaveAs}(): fix return values.
This commit is contained in:
parent
279cca3313
commit
e2183acf46
@ -50,6 +50,7 @@ class RoarCanvasCommandsFile():
|
|||||||
elif self._promptSaveChanges():
|
elif self._promptSaveChanges():
|
||||||
pathName = dialog.GetPath(); self.lastDir = os.path.dirname(pathName); self._storeLastDir(self.lastDir);
|
pathName = dialog.GetPath(); self.lastDir = os.path.dirname(pathName); self._storeLastDir(self.lastDir);
|
||||||
return self._import(f, newDirty, pathName)
|
return self._import(f, newDirty, pathName)
|
||||||
|
return False, None
|
||||||
|
|
||||||
def _loadLastDir(self):
|
def _loadLastDir(self):
|
||||||
localConfFileName = getLocalConfPathName("RecentDir.txt")
|
localConfFileName = getLocalConfPathName("RecentDir.txt")
|
||||||
@ -270,8 +271,12 @@ class RoarCanvasCommandsFile():
|
|||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
self.canvasPathName = dialog.GetPath(); self.lastDir = os.path.dirname(self.canvasPathName); self._storeLastDir(self.lastDir);
|
self.canvasPathName = dialog.GetPath(); self.lastDir = os.path.dirname(self.canvasPathName); self._storeLastDir(self.lastDir);
|
||||||
if self.canvasSave(event, newDirty=True):
|
if self.canvasSave(event, newDirty=False):
|
||||||
|
self.update(pathName=self.canvasPathName)
|
||||||
self._pushRecent(self.canvasPathName)
|
self._pushRecent(self.canvasPathName)
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.imgurApiKey, self.lastFiles, self.lastDir = ImgurApiKey.imgurApiKey if haveImgurApiKey else None, [], None
|
self.imgurApiKey, self.lastFiles, self.lastDir = ImgurApiKey.imgurApiKey if haveImgurApiKey else None, [], None
|
||||||
|
Loading…
Reference in New Issue
Block a user