mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-09-30 01:07:24 +13:00
Fixed differences in saving project with new io
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
2faac4efa8
commit
b97c5366d3
3 changed files with 11 additions and 2 deletions
|
@ -29,3 +29,6 @@ for status in project.statuses:
|
|||
|
||||
settings.set("saveToZip", True)
|
||||
project.save()
|
||||
|
||||
settings.set("saveToZip", False)
|
||||
project.save()
|
||||
|
|
|
@ -40,9 +40,12 @@ class Project:
|
|||
def save(self):
|
||||
print("Save project: " + str(self.file.path) + " " + str(self.file.dir_path))
|
||||
|
||||
saveToZip = self.settings.isEnabled("saveToZip")
|
||||
self.file.setZipFile(saveToZip)
|
||||
|
||||
self.statuses.save()
|
||||
self.settings.save()
|
||||
self.plots.save()
|
||||
#self.revisions.save()
|
||||
|
||||
self.file.save(self.settings.isEnabled("saveToZip"))
|
||||
self.file.save(saveToZip)
|
||||
|
|
|
@ -34,7 +34,10 @@ class MskFile(TextFile, ZipFile):
|
|||
|
||||
if not zipFile:
|
||||
self.dir_path = os.path.splitext(self.path)[0]
|
||||
|
||||
if not os.path.isdir(self.dir_path):
|
||||
os.mkdir(self.dir_path)
|
||||
|
||||
ZipFile.load(self)
|
||||
|
||||
self.zipFile = zipFile
|
||||
|
|
Loading…
Reference in a new issue